ucfirst()php
<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function
ข้อความแรกจดหมายเป็นอักษรตัวพิมพ์ใหญ่ php
<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
ก่อตัวอักษรตัวพิมพ์ใหญ่ php
ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
php ตัวพิมพ์ใหญ่ก่อนจดหมาย
ucfirst("hello world!");
ucfirst
<?php
/* Convert the first character of "hello" to uppercase: */
echo ucfirst("hello samy!");
//output : Hello samy!
?>
php อักษรตัวพิมพ์ใหญ่ก่อนจดหมาย
ucfirst($myword);