Is it possible to replace an upper-case with lower-case using preg_replace
and regex
?
For example:
The following string:
$x="HELLO LADIES!";
I want to convert it to:
hello ladies!
using preg_replace()
:
echo preg_replace("/([A-Z]+)/","$1",$x);