Re: STRING TO ASCII CHARACTERS
| From: | John Hicks | Date: | Sat, 24 Jun 2006 14:34:34 +0000 |
| Subject: | Re: STRING TO ASCII CHARACTERS | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238579@lists.php.net to get a copy of this message | ||
Ahmed Saad wrote:
On 23/06/06, cajbecu <cajbecu@gmail.com> wrote:And, for the record, you are not converting a string to ASCII, rather an ASCII string to its decimal equivalent. -J$data .= "&#".ord(substr($string,$i,1)).";";and I think there's no need for substr.. just $data .= "&#".$string[$i].";"; /ahmed