ereg_replace used in paging

An 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);








This entry was posted in anything under the moonlight, php and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>