Saturday, May 24, 2008

PHP substr() Function

The substr() function returns a part of a string.

<?php  echo substr("Hello world!",6);  ?>

<?php  echo substr("Hello world!",6,5);  ?>

No comments: