Answers for "php get response value without knowing key"

PHP
0

php array_reverse keep keys

<?php
$input  = array("php", 4.0, array("green", "red"));
$reversed = array_reverse($input);
$preserved = array_reverse($input, true);

print_r($input);
print_r($reversed);
print_r($preserved);
?>
Posted by: Guest on September-08-2020
0

php array remove keys keep values

<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>
Array
(
    [0] => XL
    [1] => gold
)
Posted by: Guest on May-13-2020

Code answers related to "php get response value without knowing key"

Browse Popular Code Answers by Language