How to convert string to uppercase or lowercase in PHP?
We can convert strong to upper case using strtoupper() function and convert string to lowercase using strtolower() PHP function.
For Example,
<?php
$string = "This is test string.";
$new_string = strtoupper($string);
echo $new_string;
//output would be THIS IS TEST STRING
?>
For Example,
<?php
$string = "This is test string.";
$new_string = strtoupper($string);
echo $new_string;
//output would be THIS IS TEST STRING
?>
0 comments:
Feel free to contact the admin for any suggestions and help.