Sometime, we want to limit our string to display only few from the whole string. For example, in the homepage. This can be archieved easily using the default substr function. The example of the usage to limit to 25 characters:
Read more…
Limit string using regex with PHP
Posted on Programming and tagged with php, Regular Expression
Feb
09
2009
7 comments
© 2008-2010 Jeffri Hong
Proudly powered by Wordpress