Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Utilisation d’un tableau intégré dans un autre


{filelink=13811}

  <html>
 <head>
  <title>Tableau</title>
 </head>
 <body>
<?php

$arr = array(
  1 => "abc",
  "abc" => 123.5,
  array(10,20,30)
);
$key = "abc";

echo "A = $arr[1]";
echo "B = $arr[abc]";

echo "C= $arr[2]";
echo "D = $arr[2][2]";

echo "E = ${arr['abc']}";
echo "F = ${arr["abc"]}
";
echo "G = ${arr[$key]}";
?>
 </body>
 </html>

No comments yet.

Leave a Comment