Ok, kind of a misleading title, but I really don't know how to phrase it. My question is legit, though.
Basically, how would I preg_replace everything on the page?
Let's say I have a bunch of spans. If there is a URL parameter '?edit=true', then turn all of those spans into inputs. But only the spans with the id='editable'. Is that possible with PHP?
Thanks
-PG
|