PDA

View Full Version : explode and spacing issue


ClubCosmic
12-27-2004, 11:13 PM
hi all,

i am able to use explode() to break up a string and it works great, except that if the string contains a space like "tampa bay" the explode() function returns "tampa_bay" (notice the underscore) . I was wondering if there is a way around this?

raf
12-27-2004, 11:43 PM
i don't understand the problem.
Do you mean that 'tampa bay' is transformed into 'tampa_bay'? It would very much surprise me if that could be done by explode().

Maybe post the code you use ...

ClubCosmic
12-28-2004, 12:36 AM
I found my answer. eregi_replace worked fine. tnx :thumbsup: