Answers for "accept both uppercase and lowercase in a string n php"

PHP
2

php change sting to caps

$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);

echo $uppercase;
Posted by: Guest on June-26-2020
4

how to convert string word to lowercase in php

strtolower ( string $string ) : string 
//Returns string with all alphabetic characters converted to lowercase.
$string = 'HELLO WORLD';
echo strtolower($string); //Output: 'hello world'
The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets present in the string to lowercase.
Posted by: Guest on June-19-2020
0

how to change uppercase to lowercase and spaces to _ in php

<?php print (str_replace(' ', '-', strtolower($blob))); ?>
Posted by: Guest on June-21-2021

Code answers related to "accept both uppercase and lowercase in a string n php"

Browse Popular Code Answers by Language