PDA

View Full Version : Can I convert text into capitals via PHP?



Halting
05-06-2006, 03:27 PM
Am I able to convert text into capitals through the use of PHP?

+Rep for whoever trys to/helps me.

Thanks,
Oli

EDIT:
Found the code needed. For people who are after it:-


<?php$copy = "Text to be converted into capitals!";
$str = "$copy";
$str = strtoupper($str);
echo "$str";?>

Jamie.
05-06-2006, 03:35 PM
wot do u mean?, cant u just type it in capitals ;l

timROGERS
05-06-2006, 05:56 PM
Or:



<?php
$copy = "Text to be converted into capitals!";
$copy = strtoupper($copy);
echo $copy;
?>

Liberation
10-06-2006, 10:00 AM
Ye.
Correct me if im wrong but just hit the Caps Lock Button?

Luckyrare
10-06-2006, 12:08 PM
Ye.
Correct me if im wrong but just hit the Caps Lock Button?
For some things yes, but for verification and stuff like that its handy

Liberation
10-06-2006, 05:51 PM
O rite
Thanks for telling me....
Helped me aswell :P
May aswell +Rep u for that

Want to hide these adverts? Register an account for free!