This class contains externs for native PHP functions defined in global namespace.
For native PHP constants in global namespace see php.Const
.
Static methods
staticarray_diff(array:Rest<NativeArray>):NativeArray
staticarray_fill(start_index:Int, num:Int, value:Dynamic):NativeArray
staticarray_filter(array:NativeArray, ?callback:(Dynamic, Dynamic) ‑> Bool, flag:Int = 0):NativeArray
staticarray_filter(array:NativeArray, callback:Dynamic ‑> Bool, ?flag:Int):NativeArray
staticarray_key_exists(key:EitherType<String, Int>, arr:NativeArray):Bool
staticarray_keys(arr:NativeArray):NativeIndexedArray<EitherType<String, Int>>
staticarray_map(callback:EitherType<Dynamic ‑> Dynamic, String>, array:Rest<NativeArray>):NativeArray
staticarray_merge(array:Rest<NativeArray>):NativeArray
staticarray_pad(array:NativeArray, size:Int, value:Dynamic):NativeArray
staticarray_push(array:Ref<NativeArray>, value:Rest<Dynamic>):Int
staticarray_reverse(array:NativeArray, preserve_keys:Bool = false):NativeArray
staticarray_search(needle:Dynamic, haystack:NativeArray, strict:Bool = false):EitherType<Bool, EitherType<String, Int>>
staticarray_shift(array:Ref<NativeArray>):Dynamic
staticarray_slice(array:NativeArray, offset:Int, ?length:Int, preserve_keys:Bool = false):NativeArray
staticarray_splice(array:Ref<NativeArray>, offset:Int, lenght:Int = 0, ?replacement:Dynamic):NativeArray
staticarray_unshift(arr:Ref<NativeArray>, value:Rest<Dynamic>):Int
staticarray_values(arr:NativeArray):NativeIndexedArray<Dynamic>
staticbase64_decode(data:String, strict:Bool = false):EitherType<String, Bool>
staticcall_user_func(callback:Dynamic, arguments:Rest<Dynamic>):Dynamic
staticcall_user_func_array(callback:Dynamic, arguments:NativeArray):Dynamic
staticcheckdnsrr(host:String, type:String = "MX"):Bool
staticchunk_split(body:String, chunklen:Int = 76, end:String = "\r\n"):String
staticclass_alias(original:String, alias:String, autoload:Bool = true):Bool
staticclass_exists(class_name:String, autoload:Bool = true):Bool
staticclearstatcache(clear_realpath_cache:Bool = false, ?filename:String):Bool
staticcli_set_process_title(title:String):Bool
staticdebug_backtrace(?options:Int, ?limit:Int):NativeIndexedArray<NativeAssocArray<Dynamic>>
staticdns_get_record(hostname:String, ?type:Int, ?authns:Ref<NativeIndexedArray<NativeAssocArray<Dynamic>>>, ?addtl:Ref<NativeIndexedArray<NativeAssocArray<Dynamic>>>, raw:Bool = false):EitherType<NativeIndexedArray<NativeAssocArray<Dynamic>>, Bool>
staticerror_log(message:String, message_type:Int = 0, ?destination:String, ?extra_headers:String):Bool
staticexplode(delimiter:String, string:String, ?limit:Int):EitherType<Bool, NativeIndexedArray<String>>
staticextension_loaded(name:String):Bool
staticfgetc(handle:Resource):EitherType<Bool, String>
staticfgets(handle:Resource):EitherType<Bool, String>
staticfile_get_contents(filename:String, use_include_path:Bool = false, ?context:Resource, offset:Int = 0, ?maxlen:Int):EitherType<String, Bool>
staticfile_put_contents(filename:String, data:Dynamic, flags:Int = 0, ?context:Resource):EitherType<Int, Bool>
staticfileatime(filename:String):EitherType<Int, Bool>
staticfilectime(filename:String):EitherType<Int, Bool>
staticfilemtime(filename:String):EitherType<Int, Bool>
staticfileowner(filename:String):EitherType<Int, Bool>
staticfilesize(filename:String):EitherType<Int, Bool>
staticfiletype(filename:String):EitherType<String, Bool>
staticfilter_has_var(input_type:Int, var_name:String):Bool
staticfilter_id(name:String):EitherType<Int, Bool>
staticfilter_input(type:Int, var_name:String, ?filter:Int, ?options:EitherType<NativeAssocArray<Dynamic>, Int>):Dynamic
staticfilter_list():NativeIndexedArray<String>
staticfilter_var(value:Any, ?filter:Int, ?options:EitherType<NativeAssocArray<Dynamic>, Int>):Dynamic
staticfopen(filename:String, mode:String, use_include_path:Bool = false, ?context:Resource):EitherType<Bool, Resource>
staticftell(handle:Resource):EitherType<Int, Bool>
staticfunc_get_args():NativeIndexedArray<Dynamic>
staticfunction_exists(function_name:String):Bool
staticget_class(?object:{}):EitherType<Bool, String>
staticget_object_vars(object:{}):NativeAssocArray<Dynamic>
staticget_parent_class(?object:Dynamic):EitherType<Bool, String>
staticgetallheaders():NativeAssocArray<Dynamic>
staticgetenv(varname:String):EitherType<String, Bool>
staticgethostbyaddr(ip_address:String):EitherType<String, Bool>
staticgethostbyname(hostname:String):String
staticgetprotobyname(name:String):EitherType<Int, Bool>
staticglob(pattern:String, flags:Int = 0):NativeArray
staticgmmktime(?hour:Int, ?minute:Int, ?second:Int, ?month:Int, ?day:Int, ?year:Int, ?is_dst:Int):Int
staticgzcompress(data:String, ?level:Int, ?encoding:Int):EitherType<String, Bool>
staticgzuncompress(data:String, ?length:Int):EitherType<String, Bool>
statichash_algos():NativeIndexedArray<String>
statichash_hmac_algos():NativeIndexedArray<String>
statichash_hmac_file(algo:String, data:String, key:String, binary:Bool = false):EitherType<String, Bool>
staticheaders_list():NativeIndexedArray<String>
statichex2bin(str:String):EitherType<String, Bool>
statichtml_entity_decode(string:String, ?flags:Int, ?encoding:String):String
statichtmlspecialchars(string:String, ?flags:Int, ?encoding:String, double_encode:Bool = true):String
statichtmlspecialchars_decode(string:String, ?flags:Int):String
statichttp_response_code(?response_code:Int):EitherType<Int, Bool>
staticidn_to_ascii(domain:String, ?options:Int, ?variant:Int, ?idna_info:Ref<NativeAssocArray<Dynamic>>):EitherType<String, Bool>
staticidn_to_utf8(domain:String, ?options:Int, ?variant:Int, ?idna_info:Ref<NativeAssocArray<Dynamic>>):EitherType<String, Bool>
staticin_array(needle:Dynamic, haystack:NativeArray, strict:Bool = false):Bool
staticinclude_once(include_path:String):Void
staticini_get(var_name:String):EitherType<Bool, String>
staticinterface_exists(interface_name:String, autoload:Bool = true):Bool
staticintl_error_name(error_code:Int):String
staticintl_get_error_message():String
staticintl_is_failure(error_code:Int):Bool
staticis_callable(value:Dynamic, syntax_only:Bool = false, ?callable_name:String):Bool
staticis_executable(filename:String):Bool
staticis_subclass_of(value:Dynamic, className:String, allow_string:Bool = true):Bool
staticis_uploaded_file(filename:String):Bool
staticjson_encode(value:Dynamic, options:Int = 0, depth:Int = 512):EitherType<String, Bool>
staticjson_last_error_msg():EitherType<String, Bool>
statickey(array:NativeArray):EitherType<String, Int>
staticmail(to:String, subject:String, message:String, ?additional_headers:String, ?additional_parameters:String):Bool
staticmb_check_encoding(?str:String, ?encoding:String):Bool
staticmb_chr(cp:Int, ?encoding:String):String
See also:
http://php.net/manual/en/function.mb-chr.php (Polyfilled for php 7.0)
staticmb_convert_encoding(str:String, to_encoding:String, ?from_encoding:Dynamic):String
staticmb_internal_encoding(?encoding:String):EitherType<Bool, String>
staticmb_ord(str:String, ?encoding:String):Int
See also:
http://php.net/manual/en/function.mb-ord.php (Polyfilled for php 7.0)