基本知識
<?php
$hello = "hello world"
echo $hello
?>
PHPで連想配列、その1
<?php
//その①
$person3 = [
"name" => "ST",
"age" => 20,
"home" => "kagawa"
];
echo "<pre>";
print_r($person3);
echo "</pre>";
//その②
$person4 = [];
$person4["name"] = "TY";
$person4["age"] = 30;
$person4["home"] = "tokyo";
echo "<pre>";
print_r($person4);
echo "</pre>";
?>
PHPで連想配列、その2
//その①
let person5 = {
name: "太郎",
age: 26,
home: "tokyo"
};
echo "<pre>";
print_r($person5);
echo "</pre>";
//その②
person6 = {};
person6["name"] = "次郎";
person6["age"] = 40;
person6["home"] = "kanagawa";
echo "<pre>";
print_r($person6);
echo "</pre>";
</script>