includes/lang.php
changeset 1327 e8f4dea267c8
parent 1227 bdac73ed481e
equal deleted inserted replaced
1326:f99dfb1b0530 1327:e8f4dea267c8
   598  	* @return string
   598  	* @return string
   599  	*/
   599  	*/
   600 	
   600 	
   601 	static function var_export_string($val)
   601 	static function var_export_string($val)
   602 	{
   602 	{
       
   603 		/*
   603 		ob_start();
   604 		ob_start();
   604 		var_export($val);
   605 		var_export($val);
   605 		$contents = ob_get_contents();
   606 		$contents = ob_get_contents();
   606 		ob_end_clean();
   607 		ob_end_clean();
   607 		return $contents;
   608 		return $contents;
       
   609 		*/
       
   610 		// Which PHP version was the second parameter added in?? o_O
       
   611 		return var_export($val, true);
   608 	}
   612 	}
   609 	
   613 	
   610 	/**
   614 	/**
   611  	* Registers a filter, a function that strings can be passed through to change the string somehow (e.g. htmlspecialchars)
   615  	* Registers a filter, a function that strings can be passed through to change the string somehow (e.g. htmlspecialchars)
   612  	* @param string Filter name. Lowercase alphanumeric (htmlsafe)
   616  	* @param string Filter name. Lowercase alphanumeric (htmlsafe)