I know this is completely stupid but how can i take something with a single
quote ' and replace it in the string with \'
Ex:
Bain's Deli
to
Bain\'s Deli
$fieldcontents = strtr($fieldcontents, "'", "\\\'"); -or-
$fieldcontents = strtr($fieldcontents, "'", "\\'");
doesn't work. I feel dumb, but my brain isn't going yet this morning.
Thanks,
ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]