Re: [PHP] won't erase "$"

2001-10-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > Suggestions for improvement anyone? > > > $mystring = ereg_replace (".html", "", $mystring); > > > $mystring = ereg_replace (".htm", "", $mystring); > > > $mystring = ereg_replace (" ", "", $mystring); > > > > > > $mystring

Re: [PHP] won't erase "$"

2001-10-22 Thread jtjohnston
:) Thanks. Just learning. Suggestions for improvement anyone? > Oh man, use str_replace() please and to remove the $ just use '$' > > $filename = stripslashes(strip_punctuation($filename)); > > $filename = $filename.".".randString(5).".htm"; > > echo "here it is: ".$filename."!!"; > > ---

Re: [PHP] won't erase "$"

2001-10-22 Thread Rasmus Lerdorf
Oh man, use str_replace() please and to remove the $ just use '$' -Rasmus On Mon, 22 Oct 2001, jtjohnston wrote: > Marc, > I have prepared a function to erase syntax from a > But it won't erase "$" in its output when I echo. What am I doing wrong? > > A post-reply would be real handy, > Thanks

[PHP] won't erase "$"

2001-10-22 Thread jtjohnston
Marc, I have prepared a function to erase syntax from a But it won't erase "$" in its output when I echo. What am I doing wrong? A post-reply would be real handy, Thanks, John $filename = stripslashes(strip_punctuation($filename)); $filename = $filename.".".randString(5).".htm"; echo "here it