Convert a string to ASCII numeric value
<?php
function string_to_ascii($string){
$ascii = NULL;
for ($i = 0; $i < strlen($string); $i++) {
$ascii[] = ord($string[$i]); //to array
//$ascii += ord($string[$i]); //add value up to int limit 65000+
//$ascii .= ord($string[$i]); //long string of numbers
}
return($ascii);
}
?>