Answers for "php get all array keys in json"

PHP
0

php get all array keys in json

$keys = array_keys(json_decode($mystring, true));
Posted by: Guest on October-02-2021
0

php get all array keys in json

foreach($json->entries as $row) {
    foreach($row as $key => $val) {
        echo $key . ': ' . $val;
        echo '<br>';
    }
}
Posted by: Guest on October-02-2021

Browse Popular Code Answers by Language