I have:
http://stackoverflow.com/questions/43242&cat=aa&id=342342 http://stackoverflow.com/questions/43242&cat=aa&body=434&id=232 http://stackoverflow.com/questions/43242&cat=aa&call=2323&id=14143434
I would like to receive:
this link without parameter id:
http://stackoverflow.com/questions/43242&cat=aa http://stackoverflow.com/questions/43242&cat=aa&body=434 http://stackoverflow.com/questions/43242&cat=aa&call=2323
how to do it with php? str_replace + regex?
source share