<?php
$array=array(1,2,3,4,5);
printf( "\$array[0]=%s\n", $array[0]);
printf( "\$array[1]=%s\n", $array[1]);
printf( "\$array[2]=%s\n", $array[2]);
$array2=array('abc',1,2+3);
printf( "\$array2[0]=%s\n", $array2[0]);
printf( "\$array2[1]=%s\n", $array2[1]);
printf( "\$array2[2]=%s\n", $array2[2]);
$array3=array('hello'=>'world', 'apple'=>'りんご', 'police'=>110);
printf( "\$array3['hello']=%s\n", $array3['hello']);
printf( "\$array3['apple']=%s\n", $array3['apple']);
printf( "\$array3['police']=%s\n", $array3['police']);
$array3['test']="テスト";
var_dump($array3);
?>