Daily Archives: January 22, 2009

regex

Share Just wanted to share regex reference site. You can check it here http://www.grymoire.com/Unix/Regular.html for more details. What is a Regular Expression? A regular expression is a set of characters that specify a pattern. The term “regular” has nothing to … Continue reading

Posted in regex | Tagged , , , | 1 Comment

ereg_replace used in paging

ShareAn example of ereg_replace for changing the value of page in an url ex: domain.com/index.php?page=3 ereg_replace(‘page=[0-9]+’, ‘page=’.$d, $uri);

Posted in anything under the moonlight, php | Tagged , | Leave a comment