is there a way to retrieve array value not using any loop function? I have this sort of array
$at=array(
array(
array('Title:','titl','s','c',$titles),
array('First Name:','name','i','A',2,10 ),
),
is there a way to retrieve array value not using any loop function? I have this sort of array
$at=array(
array(
array('Title:','titl','s','c',$titles),
array('First Name:','name','i','A',2,10 ),
),
Yes, you can.
for example $at[0], $at[1], $at[2]
When an array hasn't been assigned keys, the keys ( in the above example keys would be 0 1 and 2) ascend numerically from 0.
For an array with keys (such as $at = array('key' => 'value', 'key2' => 'value2') ), you can access the properties as $at['key'], $at['key2'] ( note the quotes wrapping the key name )
Hope this is of use to you!
Cheers!, Pedro