Source Code:
(back to article)
<?php $str = "Hello, world!"; echo substr($str, 0, 1); // prints "H"
Result:
Report an issue