substr() function returns the part of string
Syntax
substr(string,start,length)
Example
Output
india
india
Syntax
substr(string,start,length)
Example
<?php // returns the part of string echo substr("hello india",6); echo substr("hello india",6,5); ?> |
india
india
0 comments:
Post a Comment