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

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...