substr() is used to limit the post length.
Syntax: substr($string,start position,end position)
Example: <?php echo substr(“Hello smarttips”,0,4); ?>
Output:Hello
substr() is used to limit the post length.
Syntax: substr($string,start position,end position)
Example: <?php echo substr(“Hello smarttips”,0,4); ?>
Output:Hello