Thank you...great idea. In fact, I went the way of JSON. Actually, I really need a text DB since the data will drive the creation of a report. Here is what I have:
$layout = '{"Layout": [
{"attr":"first_name","line":1,"x":0,"strong":1},
{"attr":"last_name","line":1,"x":40,"strong":1}
]}';
$oLayout = json_decode($layout, TRUE);
// Get the "attr" values
foreach ($oLayout as $layout) {
foreach($layout as $key => $value) {
print_r($value["attr"] . "<br>");
}
}
I still have not mastered the syntax of php arrays. I understand the above, however, is it possible to access the "attr" of, let's say, the second $oLayout (index = 1) is one line of code?
Todd