รูปแบบ
echo substr_count("สตริง", "คำที่ต้องการนับ");
ตัวอย่าง
echo substr_count("The girl is mine. This is it", "is");
// 2 
number_format(ค่าตัวเลขที่จะแปลง)ตัวอย่าง $number = 1234;echo number_format($number)// 1,234   
mt_rand(ค่าเลขสุ่มเริ่มต้น,ค่าเลขสุ่มถึง)ตัวอย่างecho mt_rand(1, 10);// 9 echo mt_rand(20, 30);// 30 echo mt_rand(40, 50);// 45