F
F
FastClick2020-02-20 15:30:55
PHP
FastClick, 2020-02-20 15:30:55

How to get some data out of an array?

There is an array

$test = array("id" => 123, "name" => "Имя", "bbb" => "kkkk");

How to output everything in print_r() except bbb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-02-20
@FastClick

unset($test['bbb']);
print_r($test);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question