src/Language.php
protected function _varExport($array, $section) {
		if (empty($array)) return '';

		$returner = "\n\t/* $section */\n";
		foreach ($array as $k => $v) {
			$key = str_replace("'", "\'", $k);
			$value = str_replace("'", "\'", $v);

			$returner .= str_pad("\t'$key'", 40, ' ');
			$returner .= '=> ';
			$returner .= "'$value',\n";
		}

		return $returner;
	}
protected function _varExport($array, $section) {
		if (empty($array)) return '';

		$returner = "\n\t/* $section */\n";
		foreach ($array as $k => $v) {
			$key = str_replace("'", "\'", $k);
			$value = str_replace("'", "\'", $v);

			$returner .= str_pad("\t'$key'", 40, ' ');
			$returner .= '=> ';
			$returner .= "'$value',\n";
		}

		return $returner;
	}
protected function _varExport ( $ array , $ section ) { if ( empty ( $ array ) ) return '' ; $ returner = "\n\t/* $section */\n" ; foreach ( $ array as $ k => $ v ) { $ key = str_replace ( "'" , "\'" , $ k ) ; $ value = str_replace ( "'" , "\'" , $ v ) ; $ returner .= str_pad ( "\t'$key'" , 40 , ' ' ) ; $ returner .= '=> ' ; $ returner .= "'$value',\n" ; } return $ returner ; }
Like var_export from php but creates a code styled array.  Called by checkLanguageFiles to create the i18n files.
@param	array	$array	The array to create the output string from.
@param	string	$section	A section name to use as comment
@return	`string`
Like var_export from php but creates a code styled array . Called by checkLanguageFiles to create the i18n files .