Latest news
Home » PHP » php substr function

php substr function

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

Leave a Reply

x

Check Also

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...