Ahmed Saad wrote:
On 23/06/06, cajbecu <[EMAIL PROTECTED]> wrote:

  $data .= "&#".ord(substr($string,$i,1)).";";

and I think there's no need for substr.. just

$data .= "&#".$string[$i].";";


/ahmed


And, for the record, you are not converting a string to ASCII, rather an ASCII string to its decimal equivalent.

-J

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to