I did the pagination
In this,
http://localhost/pages/page-1/page-2
I want to remove page-1/, dynamically.
How to use the preg_replace for this?
any idea?
I did the pagination
In this,
http://localhost/pages/page-1/page-2
I want to remove page-1/, dynamically.
How to use the preg_replace for this?
any idea?
replace
“|page-(\d*)\/|”
by
“”
Thanks a lot.
It worked for me.