function stransform($string) { for ($i=0;$i<length($string);$i++) { $data .= "&#".ord(substr($string,$i,1)).";"; } return $data; } Juanjo Pascual wrote: > Do you know any way to convert any string to ascii characters?? > > I mean: > > > *"abcdefgh"* > > to > > *"abcdefgh"* > > > Juanjo. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php