Category : PHP

How to trim recursively in PHP

April 28th, 2011 by usage | 0

How to recursively trim in PHP <?php // Usage: echo Our_Util_String::trim(‘test’); /** * Util string functions. * * @author Svetoslav Marinov <svetoslavm@gmail.com> * @copyright Svetoslav Marinov <svetoslavm@gmail.com> & others * @version 1.0 */ class Our_Util_String { /** * Recursive Trimmer :) * http://php.net/manual/en/function.trim.php * * @param mixed $arr * @param string $charlist * @return mixed […]

Zend Framework: Logout User

April 27th, 2011 by usage | 0

This snippet shows how to login i.e. clear the session of the logged user.

Redirect in Zend Framework

April 27th, 2011 by usage | 0

an example how to make a redirect in Zend Framework