PrimitiveType

PHP: convert a string into upper case letters

Use the strtoupper() function to get a new string with lower case letters converted into upper case letters:

<?php $ucString = strtoupper('this is a string'); echo $ucString; // prints 'THIS IS A STRING'

See also:
PHP: convert a string into lower case letters