php

How to convert a string to lowercase in PHP

In this tutorial, we are going to see how to convert a string to lowercase in PHP. You can use PHP’s strtolower() function to convert a string to lower case.
 

How to convert a string to lowercase in PHP
<?php
	$str = 'WELCOME TO STACKHOWTO';
	echo strtolower($str);
?>

Output:

welcome to stackhowto
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *