I want to echo the uppercase text of dynamic string data, e.g.
<?
$string = "THIS IS MY Textstring";
?>
and I want to return this:
"THIS IS MY T"
Is there a way to extract only the uppercase part til the first lowercase character appears?
I tried with strpos() and substr(), e.g.
<?
$pos = strpos("[a-z]",$string);
$string = substr($string, $pos);
?>
However it didn't get me anything.
I suppose this is very simple for you.