substr.php
<? $x="hello world"; echo $x."<p>"; $y=substr($x, 0, 3); echo "substr(\$x, 0, 3), ",$y; $z=substr($x, -5, 4); echo "<br>substr(\$x, -5, 4), ",$z; ?>