Page 1 of 1

How do I change case? Say all UPPER CASE or all lower?

Posted: Fri Nov 24, 2006 12:53 pm
by ridshack
Can anyone give me a hint on how to change the case of a value?

Code: Select all

<?php

$uppercase = “i need to be uppercase as a user entered me wrong.”;

echo “$uppercase”;
?>
Thank you,
Rid

Posted: Fri Nov 24, 2006 1:05 pm
by jayshields
Have you read the manual?

Code: Select all

strtoupper()

Posted: Fri Nov 24, 2006 1:06 pm
by andym01480
strtoupper http://uk2.php.net/manual/en/function.strtoupper.php

or strtolower! http://uk2.php.net/manual/en/function.strtolower.php

EDITED: Doh - the old post at the same time thing!

Posted: Fri Nov 24, 2006 11:38 pm
by ridshack
Thanks guys,

Googleing left me with case studys and select statements.

Ridshack