src/ADT/JSON/Builder.php
private static function escape( $string )
	{
		$replace	= array(
			'\\'	=> '\\\\',
			'"'	=> '\"',
			'/'	=> '\/',
			"\b"	=> '\b',
			"\f"	=> '\f',
			"\n"	=> '\n',
			"\r"	=> '\r',
			"\t"	=> '\t',
			"\u"	=> '\u'
			);
		$string	= str_replace( array_keys( $replace ), array_values( $replace ), $string );
		return $string;
	}
private static function escape( $string )
	{
		$replace	= array(
			'\\'	=> '\\\\',
			'"'	=> '\"',
			'/'	=> '\/',
			"\b"	=> '\b',
			"\f"	=> '\f',
			"\n"	=> '\n',
			"\r"	=> '\r',
			"\t"	=> '\t',
			"\u"	=> '\u'
			);
		$string	= str_replace( array_keys( $replace ), array_values( $replace ), $string );
		return $string;
	}
private static function escape ( $ string ) { $ replace = array ( '\\' => '\\\\' , '"' => '\"' , '/' => '\/' , "\b" => '\b' , "\f" => '\f' , "\n" => '\n' , "\r" => '\r' , "\t" => '\t' , "\u" => '\u' ) ; $ string = str_replace ( array_keys ( $ replace ) , array_values ( $ replace ) , $ string ) ; return $ string ; }
Escpapes Control Sings in String.
@access		private
@static
@param		string		$string			String to be escaped
@return		string
Escpapes Control Sings in String .