Source : lesson_18_c0_print_r.php |
Résultat |
<pre> <?php $events = array ( "1914" => array ( "June" => array ("23" => "A deepened Kiel Canal opened by the Kaiser", "28" => "Archduke Ferdinand assassinated at Sarajevo" ) , "July" => array ("26" => "Austria starts mobilisation on Russian border", "28" => "Austria declares war on Serbia" )) , "1915" => array ( "October" => array ("15" => "UK déclare la guerre à la Bulgarie", "17" => "La France déclare la guerre à la Bulgarie")) , "1918" => array ( "November" => array ("11" => "General armistice signed at 5 a.m.", "16" => "Allied soldiers begin their move towards Germany" ) ) ) ; print_r($events); ?>
|
Array
(
[1914] => Array
(
[June] => Array
(
[23] => A deepened Kiel Canal opened by the Kaiser
[28] => Archduke Ferdinand assassinated at Sarajevo
)
[July] => Array
(
[26] => Austria starts mobilisation on Russian border
[28] => Austria declares war on Serbia
)
)
[1915] => Array
(
[October] => Array
(
[15] => UK déclare la guerre à la Bulgarie
[17] => La France déclare la guerre à la Bulgarie
)
)
[1918] => Array
(
[November] => Array
(
[11] => General armistice signed at 5 a.m.
[16] => Allied soldiers begin their move towards Germany
)
)
)
|