Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP ord — Convert the first byte of a string to a value between 0 and 255

<?php
$str = "
";
if (ord($str) == 10) {
    echo "The first character of $str is a line feed.
";
}
?>
 
PREVIOUS NEXT
Tagged: #PHP #ord #Convert #byte #string
ADD COMMENT
Topic
Name
3+6 =