Arquivos
hhvm/hphp/test/vm/ReadElem.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

20 linhas
319 B
PHP

<?php
error_reporting(0);
$a = array(10, 20, 30);
print $a[0] . "\n";
print $a[1] . "\n";
print $a[2] . "\n";
print $a[3];# . "\n";
print $a["0"] . "\n";
print $a["x"];# . "\n";
$s = "abc";
print $s[0] . "\n";
print $s[1] . "\n";
print $s[2] . "\n";
print $s[3];# . "\n";
print $s["0"] . "\n";
print $s["x"] . "\n";