jagguy
asked on
display values from array
Hi, In php how do I extract the values if id ?
$data is the whole array
$data is the whole array
foreach ( $data as $key => $item) :
// echo $data['tutor_del'][$key]['id'];???????/
echo [$key]$item['id'];???????
endforeach;
array(
(int) 0 => array(
'id' => '13'
),
(int) 1 => array(
'id' => '0'
)
)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
here is the array, how do i the valu of id?
previous example didnt work
array(
(int) 0 => array(
'id' => '13'
),
(int) 1 => array(
'id' => '0'
)
)
If you need to understand PHP arrays, these links may help.
http://php.net/manual/en/book.array.php