<?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
$foo = 'hello world!';
$foo = ucwords($foo); // Hello World!
$bar = 'HELLO WORLD!';
$bar = ucwords($bar); // HELLO WORLD!
$bar = ucwords(strtolower($bar)); // Hello World!
//With custom delimiter
$foo = 'hello|world!';
$bar = ucwords($foo); // Hello|world!
$baz = ucwords($foo, "|");
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
Code Example |
---|
Php :: laravel table data types |
Php :: php server request method |
Php :: laravel blade for loop |
Php :: php referral |
Php :: enqueue wordpress |
Php :: use app name in laravel blade |
Php :: php extensions for laravel |
Php :: php connect to postgresql |
Php :: get cart page url in woocommerce |
Php :: hide php extension in url |
Php :: php max input vars wordpress wp-config |
Php :: php encode url parameters |
Php :: laravel ide helper |
Php :: php set timezone italy |
Php :: woocommerce buy product skip cart |
Php :: sleep microseconds php |
Php :: symlink in php |
Php :: laravel long description text string |
Php :: seed one table laravel |
Php :: order By Asc in laravbel |
Php :: seconds to minutes php |
Php :: how to install php fm |
Php :: wp max revisions |
Php :: wordpress stop redirect to https |
Php :: array merge laravel |
Php :: change php max upload size |
Php :: change php version ubuntu |
Php :: laravel check if eloquent just created |
Php :: carbon parse sunday 30 days ago |
Php :: how to start a session |