Correction - "$to" should of course read "$repl" :-&
--
>O Ernest E. Vogelsinger
(\)ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 08:43 14.03.2003, Dennis Gearon said:
[snip]
>I finally got something to do it, at least, in inline code.
>
>I couldn't figure out how to remove NULLS, anybody know? A search on:
[snip]
I just found this thread, pa
I finally got something to do it, at least, in inline code.
I couldn't figure out how to remove NULLS, anybody know? A search on:
http://marc.theaimsgroup.com/?l=php-general&r=1&w=2
didn't turn anything up.
//
// WORKIN
What are you trying to get out of that mess? What should the output look
like?
Niklas
-Original Message-
From: Dennis Gearon [mailto:[EMAIL PROTECTED]
Sent: 14. maaliskuuta 2003 7:51
To: [EMAIL PROTECTED]
Subject: [PHP] can't get any string replacements to clean this
All i ge
ooops, after many hours on this, I had deleted out the final echo
statement. I will play with this and see what I get now.
\nuncleaned
string--\n");
echo($bad_str . "\nn" );
echo( "\ncleaned
string--
IL PROTECTED]>
Sent: Thursday, March 13, 2003 11:51 PM
Subject: [PHP] can't get any string replacements to clean this
> All i get out of:
> str_replace
> ereg_replace
> preg_replace
>
> is an empty string value.
> Anybody know why?
>
>
> $bad_str = "
Put the arguments inside of double quotes instead of single quotes and then
try it.
$bad_str = str_replace("\r","\n",$bad_str);
- Original Message -
From: "Dennis Gearon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 11
All i get out of:
str_replace
ereg_replace
preg_replace
is an empty string value.
Anybody know why?
\nuncleaned
string-\n");
echo($bad_str . "\nn" );
echo( "\ncleaned
\n");
//Nothing
8 matches
Mail list logo