Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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 
Comment

php ucfirst all words

$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, "|"); 
Comment

ucfirst meaning in php

$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!
Comment

PREVIOUS NEXT
Code Example
Php :: php document root 
Php :: laravel run seed 
Php :: php array remove empty values 
Php :: php ucfirst all words 
Php :: number format comma php 
Php :: php iterate folder 
Php :: php check if file is video 
Php :: wordpress Access-Control-Allow-Origin 
Php :: clear log file laravel command 
Php :: wordpress get post id 
Php :: php remove after character 
Php :: php max input vars wordpress wp-config 
Php :: select distinct laravel 
Php :: how to redirect with php 
Php :: check if a string contains a substring php 
Php :: trim comma from variable in php 
Php :: laravel disable config cache 
Php :: Add 2 days to the current date in PHP 
Php :: In Connection.php line 664:SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema 
Php :: laravel doesNotHave in model 
Php :: php delete array item by value not key 
Php :: print session in laravel 
Php :: php mysql datetime 
Php :: php convert words with spaces to camelcase 
Php :: var_dump beautifier 
Php :: php remove everything after character 
Php :: faker image laravel 
Php :: how get all files name in one folder in laravel 
Php :: kill php process 
Php :: php discord webhook 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =