Answers for "PHP ?array"

PHP
3

php array

<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>
Posted by: Guest on June-17-2020
0

php array

<?php
$array = array(
    "foo" => "bar",
    "bar" => "foo",
);

// Using the short array syntax
$array = [
    "foo" => "bar",
    "bar" => "foo",
];
?>
Posted by: Guest on February-15-2021
0

array php

Array
(
    [0] => Array
        (
            [name] => phone
            [price] => 700
        )

    [1] => Array
        (
            [name] => note
            [price] => 20
        )

    [2] => Array
        (
            [name] => book
            [price] => 49
        )

)
Posted by: Guest on June-28-2021

Browse Popular Code Answers by Language