extract associative array within an array in php
Posted
by I Like PHP
on Stack Overflow
See other posts from Stack Overflow
or by I Like PHP
Published on 2010-05-12T07:17:25Z
Indexed on
2010/05/12
7:24 UTC
Read the original article
Hit count: 162
i have an array like this
Array
(
[0] => Array
(
[s_id] => 4
[si_id] => sec_1
[d_id] => dep_4
[s_name] => sec1
[s_location] => LA
[s_visibility] => yes
[s_created_date] => 1273639343
[s_last_updated_date] => 1273639343
[s_created_by] => someone
[s_last_updated_by] => everyone
)
)
now i want to extract array[0] into an array... means i want this
Array
(
[s_id] => 4
[si_id] => sec_1
[d_id] => dep_4
[s_name] => sec1
[s_location] => LA
[s_visibility] => yes
[s_created_date] => 1273639343
[s_last_updated_date] => 1273639343
[s_created_by] => someone
[s_last_updated_by] => everyone
)
how do i get above results?
© Stack Overflow or respective owner