php substring

php substring

substr() function returns a part of a string.


substr syntax

substr(string,start,length)

example substr

<?php
echo substr("php simple qa",3);


?> 

result will be:php