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

LowerCase filter

The LowerCase filter allows to change the content of a file to lowercase. You should use this filter only on textfiles.

At initiation you can give a string which will then be used as encoding. Or you can use the setEncoding() method to set it afterwards.

Example 435. Using the LowerCase filter

= new Zend_File_Transfer_Adapter_Http();

// Adds a filter to lowercase the uploaded textfile

// Adds a filter to lowercase the uploaded file but only for uploadfile1

// Adds a filter to lowercase with encoding set to ISO-8859-1


Note that due to the fact that the options for the LowerCase filter are optional, you must give a NULL as second parameter (the options) when you want to limit it to a single file element.

Zend Framework