Re: [PHP] Re: Another stupid one...

2002-08-14 Thread Liam MacKenzie
way, and it's a downright pain. Oh well. - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 2:10 PM Subject: [PHP] Re: Another stupid one... Just stop using ereg_replace where not needed and use

[PHP] Re: Another stupid one...

2002-08-14 Thread NoWhErEMan
I get: [EMAIL PROTECTED] "Liam Mackenzie" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D :003a01c24410$358fd7a0$[EMAIL PROTECTED] > Hey all, got another dumb question :-) > > Output text is as follows: > > User : [EMAIL PROTECTED] > > I do this: > $results = ereg_replace("User :", '', $results); > > I get

[PHP] Re: Another stupid one...

2002-08-14 Thread Bogdan Stancescu
Just stop using ereg_replace where not needed and use str_replace instead - it's faster and you don't risk bumping into "key-chars" like you just did. While regexps are very useful when needed, people tend to use the same functions even when they don't need regexps just out of habit... There,