Hello, All
I'm trying to build an array from a selection of similarly entitled CMSB fields. It looks something like this...
$myArray = array($record[0]['field1'], $record[0]['field2'], $record[0]['field3'], $record[0]['field4'], $record[0]['field5'], $record[0]['field6']);
As you can see, each field name is almost identical. Only the number on the end is different.
I wondered if, instead of having to identify each field in the array individually, I could use some kind of wildcard to lookup a spread of fields with similar names.
A sort of...
$record[0]['field*']
...approach?!
Any help would be most welcome.
:0)
Perchpole