It converts Variable or value to Javascript.
mixed convertArray( string $arr, string $varname, [boolean $global = false], [int $level = 0])
Keeps keys as they are (associative arrays).
mixed convertArrayToProperties( $array, string $varname, [ $global = false], [boolean $new = true], string $arr)
string convertBoolean( boolean $bool, string $varname, [boolean $global = false])
Note this function does not check the type of $bool, only if the expression $bool is true or false.
string convertNull( string $varname, [boolean $global = false])
mixed convertString( string $str, string $varname, [boolean $global = false])
mixed convertValue( $val, string $param)
String variables are escaped (see escapeString()).
mixed convertVar( mixed $var, string $varname, [boolean $global = false])
mixed escapeString( string $str)
mixed raiseError( integer $code, [ $str = ''])