On Thu, 4 Apr 2002, Rick Emery wrote:
> it should print:
> V:\memo\F0001\abcdef.com
> \F0001\abcdef.com
Indeed, sorry for the lapsus. In fact, look at this:
in:
$qq = "V:\\memo\\F0001\\abcdef.com";
print "$qq<br>\n";
$qx = ereg_replace('V:\\','',$qq);
print $qx;
out:
Parse error: parse error in /home/rodolfo/public_html/test.php on line 5
in:
$qq = "V:\\memo\\F0001\\abcdef.com";
print "$qq<br>\n";
$qx = ereg_replace("V:\\",'',$qq);
print $qx;
out:
V:\memo\F0001\abcdef.com
Warning: Trailing backslash in /home/rodolfo/public_html/test.php on line
5
Regards,
Rodolfo.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php