I have a string I'm returning from a database. Some entries have # signs
in the names ie (COMPANY #42, COMPANY #43...). When I display results
all I have is COMPANY. Everything after the # is dropped off. I tried:
If ($cust) {
$cust2=ereg_replace('#','no',$cust);
//tried $cust2=ereg_replace("#","no",$cust); too
}
but that still returns the same thing (COMPANY).
Also tried:
$cust2 = preg_replace ("'&(pound|#163);'i", chr(163), $cust);
Any help is appreciated.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] Escaping '#' Sign Mike Smith
- Re: [PHP] Escaping '#' Sign Richard Baskett
- Re: [PHP] Escaping '#' Sign Tom Woody
- RE: [PHP] Escaping '#' Sign Mike Smith
- RE: [PHP] Escaping '#' Sign Ford, Mike [LSS]
- RE: [PHP] Escaping '#' Sign Mike Smith
- RE: [PHP] Escaping '#' Sign Ford, Mike [LSS]