Return ascii value function odr in php tutorial
The ord() function returns the ascii value of the first character of a string.
Grammar
ord(string)
*/
$str="h"; //Define character
$result=ord($str); //Get its ascii code
The ascii code of echo "character ".$str." is: ".$result; //Output result, 72
http://www.bkjia.com/PHPjc/631716.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631716.htmlTechArticleThe ascii value function odr ord() function returns the ascii value of the first character of the string in the php tutorial. Syntax ord(string) */ $str=h;//Define character $result=ord($str);//Find its ascii code echo word...