Showing posts with label PHP ord. Show all posts
Showing posts with label PHP ord. Show all posts

Monday, 29 September 2014

ord in PHP

PHP ord() function is utilized to calculates the ASCII value of the first character of a specified string.

Syntax:

ord(string)
string : Required. The input string.

Example:

<?php
echo ord("w")."<br />";
echo ord("welcome")."<br />";
?>
Output will be:
119 
119