Return ascii value function odr_PHP tutorial in php

WBOY
Release: 2016-07-13 16:55:06
Original
1055 people have browsed it

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

www.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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!