english/libraries/joomla/utilities/arrayhelper.php
/**
	 * Function to convert array to integer values
	 *
	 * @param   array    $array    The source array to convert
	 * @param   mixed    $default  A default value (int|array) to assign if $array is not an array
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
Function to convert array to integer values
@param   array    $array    The source array to convert
@param   mixed    $default  A default value (int|array) to assign if $array is not an array

@return  void


Function to convert array to integer values @param array $array The source array to convert @param mixed $default A default value ( int|array ) to assign if $array is not an array @return void
public static function toInteger(&$array, $default = null)
	{
		if (is_array($array)) {
			foreach ($array as $i => $v) {
				$array[$i] = (int) $v;
			}
		} else {
			if ($default === null) {
				$array = array();
			} elseif (is_array($default)) {
				JArrayHelper::toInteger($default, null);
				$array = $default;
			} else {
				$array = array((int) $default);
			}
		}
	}
public static function toInteger ( & $ array , $ default = null ) { if ( is_array ( $ array ) ) { foreach ( $ array as $ i => $ v ) { $ array [ $ i ] = ( int ) $ v ; } } else { if ( $ default === null ) { $ array = array ( ) ; } elseif ( is_array ( $ default ) ) { JArrayHelper :: toInteger ( $ default , null ) ; $ array = $ default ; } else { $ array = array ( ( int ) $ default ) ; } } }
Function to convert array to integer values
 @param   array    $array    The source array to convert
 @param   mixed    $default  A default value (int|array) to assign if $array is not an array
Function to convert array to integer values @param array $array The source array to convert @param mixed $default A default value ( int|array ) to assign if $array is not an array