วันอาทิตย์ที่ 17 เมษายน พ.ศ. 2554

PHP ucfirst()

PHP ucfirst() เปลี่ยนตัวอักษรตัวแรกให้เป็นตัวพิมพ์ใหญ่

Syntax
---------------------
ucfirst (string);
---------------------


Example
*-*-*-*-*-*-*-*-*-*-*
<?php
$str = 'nathapol';
echo ucfirst ($str);
?>
*-*-*-*-*-*-*-*-*-*-*


ผลที่ได้คือ 
Nathapol

ไม่มีความคิดเห็น:

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