Answers for "write a php script to : - a) transform a string all uppercase letters. b) transform a string all lowercase letters. c) make a string's first character uppercase. d) make a string's first character of all the words uppercase."

PHP
16

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!
?>
Posted by: Guest on July-03-2020
7

first character uppercase php

ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Posted by: Guest on August-21-2020

Code answers related to "write a php script to : - a) transform a string all uppercase letters. b) transform a string all lowercase letters. c) make a string's first character uppercase. d) make a string's first character of all the words uppercase."

Browse Popular Code Answers by Language