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, 
$string = "This is test string.";
$new_string = strtoupper($string);

echo $new_string;
//output would be THIS IS TEST STRING


Feel free to contact the admin for any suggestions and help.