วันอาทิตย์ที่ 11 พฤษภาคม พ.ศ. 2557

20:06
ฟังก์ชัน ord()
อ่านค่า ASCII ของตัวอักษรแรกของ string ด้วยฟังก์ชัน ord()

 
รูปแบบ
ord(string)

string คือ สตริง


ตัวอย่าง
<?php

$str = "Hello World!"; 
echo ord($str);

?>

ผลลัพธ์
72

0 ความคิดเห็น:

แสดงความคิดเห็น

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.