Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

string first letter uppercase php


<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #string #letter #uppercase #php
ADD COMMENT
Topic
Name
2+3 =