Re: [PHP] Another stupid one...

2002-08-14 Thread Justin French
For starters, use str_replace() because you've got nothing that needs the overhead of ereg. The : is a key character too, which is creating your problem. $results = str_replace('User :', '', $results); Justin French on 15/08/02 1:59 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote: > Hey all, g

[PHP] Another stupid one...

2002-08-14 Thread Liam MacKenzie
Hey all, got another dumb question :-) Output text is as follows: User : [EMAIL PROTECTED] I do this: $results = ereg_replace("User :", '', $results); I get this: User : [EMAIL PROTECTED] But when I do this: $results = ereg_replace("User", '', $results); I get this: : [EMAIL PROTECTED]