Location: PHPKode > projects > Saurus CMS > classes/smarty/lib/plugins/modifier.array_push.php
<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty array_push modifier plugin
 *
 * Type:     modifier<br>
 * Name:     <br>
 * Date:     01.04.2006
 * Purpose:  duplicate PHP's array_push function
 *
 * @author Saurus <hide@address.com>
 */
function smarty_modifier_array_push(&$array, $value)
{
	if(!is_array($array) && empty($array))
	{
		$array = array();
	}
	array_push($array, $value);
}
?>
Return current item: Saurus CMS