Categories
How to get an array from the keys of a PHP object?
$qw = {1: 32, 2: 3, 5:45..}; You need to get an array of keys i.e.[1,2,5...]
$qw = {1: 32, 2: 3, 5:45..};
[1,2,5...]
Answer the question
In order to leave comments, you need to log in
json_decode array_keys
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question