cappitalize string in php
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;
// THIS IS LOWER CASE<?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
/* There is a function in php wich convert all string to uppercase */
echo strtoupper("Hello samy! how are u ?");
// output : HELLO SAMY! HOW ARE U ?
?>
Also in PHP:
- alpha numeric to upper case in php
- convert json to array php
- date format php l with capital
- <?php header('Location: /index');
- enable display error in php
- check is char exist in stirng php
- current date display in php
- check the type of the variable in php
- codeigniter how to know update failed
- check if the string match in php
- convert date object to string php
- check if number is divided by 5 php
- The "App\Entity\ entity has a repositoryClass set to but this is not a valid class.
- check if exists key in array
- create or update laravel
- error correction in qr code php
- Backend fatal error: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted in laravel 8
- day of week echo $(date +%F.%H%M%S)
- contains php string
- Allowed memory size of 1610612736 bytes exhausted
- array key exstis php
- $_Server php find
- July 2, 2019 php date format
- autoload.php