How may I programatically append and create the following predefined
array in PHP?
Although the example has all the data and the subsequent arraw
predifined I must create an array while iterating through the rows in an
RDBMS.
Thanks
array(
array('name' => 'bob', 'phone' => '555-3425'),
array('name' => 'jim', 'phone' => '555-4364'),
array('name' => 'joe', 'phone' => '555-3422'),
array('name' => 'jerry', 'phone' => '555-4973'),
array('name' => 'fred', 'phone' => '555-3235')
)
array in PHP?
Although the example has all the data and the subsequent arraw
predifined I must create an array while iterating through the rows in an
RDBMS.
Thanks
array(
array('name' => 'bob', 'phone' => '555-3425'),
array('name' => 'jim', 'phone' => '555-4364'),
array('name' => 'joe', 'phone' => '555-3422'),
array('name' => 'jerry', 'phone' => '555-4973'),
array('name' => 'fred', 'phone' => '555-3235')
)
Comment