M
M
Matthew Stafford2018-11-14 21:37:24
PHP
Matthew Stafford, 2018-11-14 21:37:24

Any number in the condition, how to do?

How can I make any number in the condition?

if($res->response->items->{любое число}->id == USER_IDS)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-11-14
@Minifets

Try like this:
$res->response->items[0]->id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question