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);