Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store


This filter converts any input to be uppercased.

Supported options for Zend_Filter_StringToUpper

The following options are supported for Zend_Filter_StringToUpper:

  • encoding: This option can be used to set an encoding which has to be used.

Basic usage

This is a basic example for using the StringToUpper filter:

= new Zend_Filter_StringToUpper();

// returns "SAMPLE"

Different encoded strings

Like the StringToLower filter, this filter handles only characters from the actual locale of your server. Using different character sets works the same as with StringToLower.

= new Zend_Filter_StringToUpper(array('encoding' => 'UTF-8'));

// or do this afterwards

Zend Framework