Latest news
Home » PHP » php zendframework truncate a string function

php zendframework truncate a string function

The programmers can use this <h4>truncate function in php zend framework</h4> to limit the string length

<?php echo $mysmartcode = $this->string()->truncate(‘ i love u’, 5); ?>

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 ...