I
I
Ibishka2020-04-27 13:03:18
PHP
Ibishka, 2020-04-27 13:03:18

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...]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-04-27
@Ibishka

json_decode
array_keys

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question