Hi all,
So I have some URLs that look like this:
/details/Type+Year+Make+Model+Trim+VIN
I then explode() everything after "/details/" using "+" as the delimiter.
Problem is, today I'm encountering some data where the "Trim" part has a "+" in it. Here's the string in question:
New+2010+Kia+Soul+2.0L I4 ++KNDJT2A2XA7105256
To try and solve this, I escaped the + like so:
New+2010+Kia+Soul+2.0L I4 %2B+KNDJT2A2XA7105256
When I explode() this string, PHP recognizes the "%2B" as a "+" and treats it as a delimiter.
How can I escape the "+" so that explode() won't treat it as a delimiter?
Thanks!



Reply With Quote


Bookmarks