Answers for "convert associative array to index array php"

PHP
1

php transform associative array to array

$array = array_values($array);
Posted by: Guest on June-14-2020
1

php add to associative array

// for php 5.4+
$data += [$key => $value];

// for php 5.4-
$data += array($key => $value);
Posted by: Guest on October-26-2020
0

php change an associative array into indexed array

$array = array_values($array);
Posted by: Guest on June-14-2021

Code answers related to "convert associative array to index array php"

Browse Popular Code Answers by Language