[PHP] replacing characters in a string

2004-10-14 Thread Mark Hubert
This should be simple but having never have done it before and at deadline...help please. Need to change: [EMAIL PROTECTED] to; user=domain Thank you! Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replacing characters in a string

2004-10-14 Thread Dan Joseph
This should be simple but having never have done it before and at deadline...help please. Need to change: [EMAIL PROTECTED] to; user=domain str_replace() is what you want... $var = str_replace( @, =, $oldvar ); -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] replacing characters in a string

2004-10-14 Thread Robby Russell
On Thu, 2004-10-14 at 21:04 -0500, Mark Hubert wrote: This should be simple but having never have done it before and at deadline...help please. Need to change: [EMAIL PROTECTED] to; user=domain Did you try searching on the php site or google first?

[PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
Hi there, I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. Can anybody please help? Thanx you in advance, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread John W. Holmes
Merlin wrote: I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. $new_str = str_replace('\','-',$old_string); or $new_str = str_replace(\\,'-',$old_string); But this begs the question of why do you think you need to

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
oh.. you are right, I ment slash. Workes now. Thanx for the hint :-)) -- lt;IFRAME SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE EEE scrolling=no frameborder=0 TITLE=My travel articles width=330 height=155 ALLOWTRANSPARENCY=truea href=http://www.globosapiens.net;