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…
keaglez
Hi! I'm Jeffri Hong, also known as keaglez, a 21 years old geek who love the web and comic.
Limit string using regex with PHP
Posted on Programming and tagged with php, Regular Expression
Feb
09
2009
8 comments
© 2008-2012 Jeffri Hong. Some Rights Reserved.
Proudly powered by Wordpress