int ord
stringの先頭文字の ASCII 値を返します。 この関数は chr() と逆の動作をします。
例 1. ord() の例
1 2 if (ord($str) == 10) { 3 echo("\$str の先頭は改行文字です。\n"); 4 } 5
chr() も参照下さい。