Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array access by key

$newarray = array();
foreach($shop as $key=>$value) {
    $newarray[$key]['Title'] = $value['Title'];
    $newarray[$key]['Number'] = $value['Number'];
}
echo "<pre>";print_r($newarray);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #array #access #key
ADD COMMENT
Topic
Name
4+9 =