-
PHPData/Container 2015. 3. 15. 15:29
$name = array("a..", "b..", "c..")
/*
or
$name[] = "a.."; $name[] = "b.."; $name[] = "c.."
*/
$list = array(".."=>"..", ".."=>"..", ".."=>"..")
<?php
$name[] = ".."; // $name[0]
$name[".."] = ".."; // $name[".."]
echo("$name[0] - $name[..]")
$member = array(
"ceo"=>array(
"age"=>48,
"sex"=>"F",
"name"=>".."
),
"cto"=>array(
"age"=>35,
"sex"=>"M",
"name"=>".."
),
..
);
echo $member["cto"]["name"]
$member[0][0] = "..";
$member[0][1] = "..";
$member[1][0] = "..";
$member[1][1] = "..";
echo("{$member[1][0]}<br>")
/*
or
echo $member[1][1] . "<br>"
*/
class Car {
function testCar() {
echo("..");
}
}
$sedan = new Car;
$sedan->testCar()
?>