Re: addslashes(): Is it multi-byte safe?
| From: | Moriyoshi Koizumi | Date: | Sun, 02 Mar 2003 18:38:58 +0000 |
| Subject: | Re: addslashes(): Is it multi-byte safe? | ||
| References: | 1 | Groups: | php.general php.i18n |
| Request: | Send a blank email to php-general+get-137793@lists.php.net to get a copy of this message | ||
Just correcting a typo :)
Moriyoshi Koizumi <moriyoshi@at.wakwak.com> wrote:
> <?php
> mb_internal_encoding("Shift_JIS");
> $escaped = mb_ereg_replace("([\\\"'\0])", "\\\\1", $sjis_string);
> ?>
should be
<?php
mb_internal_encoding("Shift_JIS");
$escaped = mb_ereg_replace("([\\\\\"'\0])", "\\\\1", $sjis_string);
?>
Moriyoshi