-1
0 => {#557 ▼
+"nis": 1
}
1 => {#561 ▼
+"nis": 16192248487
}
I have this array, I want to get the values: 1 and 16192248487, and plays them in a variable to give a dd
and print them on the screen and show only: 1 and 16192248487, the language I use is php with Laravel
That solves?
$arr = array_map(function($el) { return $el['nis']; }, $arr);
| NOTE: $arr = name of your array– JuniorNunes
does the following, creates a variable $link = file_get_contents("URL"); $link = json_decode($link); var_dump($link);
– Carlos da Silva
says what prints.
– Carlos da Silva
Are these values within a variable? Where were they returned from? You can take the values with a for, foreach, passing the parameters by the variable...
– Luiz Gustavo Costa Ceolin