Answers for "Mixed int and string keys"

PHP
0

Mixed int and string keys

<?php
  $array = array(
    "foo" => "bar",
    "bar" => "foo",
    100   => -100,
    -100  => 100,
);
var_dump($array);
?>
Posted by: Guest on May-06-2022

Browse Popular Code Answers by Language