RE: [PHP-DB] php maximum characters in text field
| From: | Instruct ICC | Date: | Wed, 17 Oct 2007 17:53:49 +0000 |
| Subject: | RE: [PHP-DB] php maximum characters in text field | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44227@lists.php.net to get a copy of this message | ||
> Does anyone know how to look for a "Curly quote" or "typographer's
> quotation mark". They are being submitted on our form under customer description. I have
> created a function that replaces a regular straight quotation mark ($title =
> str_replace("'", "", $title);), but do not know what to put in as the
> "look for" for the curly mark!
How do you know they are submitting ?
Can you copy from that source, then paste it into your str_replace function?
Or since it seems to be a two-byte character (I didn't see it at asciitable..com):
Maybe you need http://php.he.net/manual/en/ref.mbstring.php
mb_ereg_replace
_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us