This class contains externs for native PHP functions defined in global namespace.
For native PHP constants in global namespace see php.Const.
This class contains externs for native PHP functions defined in global namespace.
For native PHP constants in global namespace see php.Const.
staticabs<T>(number:T):Tstaticarray_diff(array:Rest<NativeArray>):NativeArraystaticarray_fill(start_index:Int, num:Int, value:Dynamic):NativeArraystaticarray_filter(array:NativeArray, ?callback:(Dynamic, Dynamic) ‑> Bool, flag:Int = 0):NativeArraystaticarray_filter(array:NativeArray, callback:Dynamic ‑> Bool, ?flag:Int):NativeArraystaticarray_key_exists(key:EitherType<String, Int>, arr:NativeArray):Boolstaticarray_keys(arr:NativeArray):NativeIndexedArray<EitherType<String, Int>>staticarray_map(callback:EitherType<Dynamic ‑> Dynamic, String>, array:Rest<NativeArray>):NativeArraystaticarray_merge(array:Rest<NativeArray>):NativeArraystaticarray_pad(array:NativeArray, size:Int, value:Dynamic):NativeArraystaticarray_pop(array:NativeArray):Dynamicstaticarray_push(array:Ref<NativeArray>, value:Rest<Dynamic>):Intstaticarray_reverse(array:NativeArray, preserve_keys:Bool = false):NativeArraystaticarray_search(needle:Dynamic, haystack:NativeArray, strict:Bool = false):EitherType<Bool, EitherType<String, Int>>staticarray_shift(array:Ref<NativeArray>):Dynamicstaticarray_slice(array:NativeArray, offset:Int, ?length:Int, preserve_keys:Bool = false):NativeArraystaticarray_splice(array:Ref<NativeArray>, offset:Int, lenght:Int = 0, ?replacement:Dynamic):NativeArraystaticarray_unshift(arr:Ref<NativeArray>, value:Rest<Dynamic>):Intstaticarray_values(arr:NativeArray):NativeIndexedArray<Dynamic>staticbase64_decode(data:String, strict:Bool = false):EitherType<String, Bool>staticbase64_encode(data:String):Stringstaticcall_user_func(callback:Dynamic, arguments:Rest<Dynamic>):Dynamicstaticcall_user_func_array(callback:Dynamic, arguments:NativeArray):Dynamicstaticcheckdnsrr(host:String, type:String = "MX"):Boolstaticchunk_split(body:String, chunklen:Int = 76, end:String = "\r\n"):Stringstaticclass_alias(original:String, alias:String, autoload:Bool = true):Boolstaticclass_exists(class_name:String, autoload:Bool = true):Boolstaticclearstatcache(clear_realpath_cache:Bool = false, ?filename:String):Boolstaticcli_set_process_title(title:String):Boolstaticconnection_aborted():Intstaticconnection_status():Intstaticcurrent(array:Ref<NativeArray>):Dynamicstaticdebug_backtrace(?options:Int, ?limit:Int):NativeIndexedArray<NativeAssocArray<Dynamic>>staticdie(status:EitherType<String, Int>):Voidstaticdns_get_record(hostname:String, ?type:Int, ?authns:Ref<NativeIndexedArray<NativeAssocArray<Dynamic>>>, ?addtl:Ref<NativeIndexedArray<NativeAssocArray<Dynamic>>>, raw:Bool = false):EitherType<NativeIndexedArray<NativeAssocArray<Dynamic>>, Bool>staticeach(array:Ref<NativeArray>):NativeArraystaticeaster_date(?year:Int, ?mode:Int):Intstaticeaster_days(?year:Int, ?mode:Int):Intstaticend(array:Ref<NativeArray>):Dynamicstaticerror_log(message:String, message_type:Int = 0, ?destination:String, ?extra_headers:String):Boolstaticerror_reporting(?level:Int):Intstaticexit(status:EitherType<String, Int>):Voidstaticexplode(delimiter:String, string:String, ?limit:Int):EitherType<Bool, NativeIndexedArray<String>>staticextension_loaded(name:String):Boolstaticfastcgi_finish_request():Boolstaticfgetc(handle:Resource):EitherType<Bool, String>staticfgets(handle:Resource):EitherType<Bool, String>staticfile_exists(filename:String):Boolstaticfile_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):Boolstaticfilter_id(name:String):EitherType<Int, Bool>staticfilter_input(type:Int, var_name:String, ?filter:Int, ?options:EitherType<NativeAssocArray<Dynamic>, Int>):Dynamicstaticfilter_list():NativeIndexedArray<String>staticfilter_var(value:Any, ?filter:Int, ?options:EitherType<NativeAssocArray<Dynamic>, Int>):Dynamicstaticfinfo_close(finfo:Finfo):Boolstaticfinfo_file(finfo:Finfo, filename:String, flags:Int = 0, ?context:Resource):EitherType<String, Bool>staticfinfo_open(flags:Int = 0, ?magic_database:String):EitherType<Finfo, Bool>staticfopen(filename:String, mode:String, use_include_path:Bool = false, ?context:Resource):EitherType<Bool, Resource>staticfstat(handle:Resource):NativeArraystaticftell(handle:Resource):EitherType<Int, Bool>staticftp_connect(hostname:String, port:Int = 21, timeout:Int = 90):EitherType<Resource, Bool>staticftp_delete(ftp:Resource, filename:String):Boolstaticftp_fget(ftp:Resource, stream:Resource, remote_filename:String, ?mode:Int, offset:Int = 0):Boolstaticftp_fput(ftp:Resource, remote_filename:String, stream:Resource, ?mode:Int, offset:Int = 0):Boolstaticftp_get_option(ftp:Resource, option:Int):EitherType<Int, Bool>staticftp_mlsd(ftp:Resource, directory:String):EitherType<NativeIndexedArray<NativeAssocArray<String>>, Bool>staticftp_nb_continue(ftp:Resource):Intstaticftp_nb_fget(ftp:Resource, stream:Resource, remote_filename:String, ?mode:Int, offset:Int = 0):Intstaticftp_nb_fput(ftp:Resource, remote_filename:String, stream:Resource, ?mode:Int, offset:Int = 0):Intstaticftp_nb_put(ftp:Resource, remote_filename:String, local_filename:String, offset:Int = 0):EitherType<Int, Bool>staticftp_nlist(ftp:Resource, directory:String):EitherType<NativeIndexedArray<String>, Bool>staticftp_pwd(ftp:Resource):EitherType<String, Bool>staticftp_raw(ftp:Resource, command:String):NativeIndexedArray<String>staticftp_rawlist(ftp:Resource, directory:String, recursive:Bool = false):EitherType<NativeIndexedArray<String>, Bool>staticftp_rename(ftp:Resource, from:String, to:String):Boolstaticftp_set_option(ftp:Resource, option:Int, value:EitherType<Int, Bool>):Boolstaticftp_ssl_connect(hostname:String, port:Int = 21, timeout:Int = 90):EitherType<Resource, Bool>staticftp_systype(ftp:Resource):EitherType<String, Bool>staticfunc_get_args():NativeIndexedArray<Dynamic>staticfunction_exists(function_name:String):Boolstaticgc_collect_cycles():Intstaticget_browser(?user_agent:String, return_array:Bool = false):EitherType<Dynamic, EitherType<NativeArray, Bool>>staticget_class(?object:{}):EitherType<Bool, String>staticget_defined_constants(categorize:Bool = false):NativeArraystaticget_include_path():Stringstaticget_object_vars(object:{}):NativeAssocArray<Dynamic>staticget_parent_class(?object:Dynamic):EitherType<Bool, String>staticgetallheaders():NativeAssocArray<Dynamic>staticgetcwd():EitherType<String, Bool>staticgetenv(varname:String):EitherType<String, Bool>staticgethostbyaddr(ip_address:String):EitherType<String, Bool>staticgethostbyname(hostname:String):Stringstaticgethostname():EitherType<String, Bool>staticgetprotobyname(name:String):EitherType<Int, Bool>staticglob(pattern:String, flags:Int = 0):NativeArraystaticgmmktime(?hour:Int, ?minute:Int, ?second:Int, ?month:Int, ?day:Int, ?year:Int, ?is_dst:Int):Intstaticgzcompress(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>staticheader_remove(?name:String):Voidstaticheaders_list():NativeIndexedArray<String>statichex2bin(str:String):EitherType<String, Bool>statichighlight_file(filename:String, returns:Bool = false):EitherType<String, Bool>statichighlight_string(string:String, returns:Bool = false):EitherType<String, Bool>statichtml_entity_decode(string:String, ?flags:Int, ?encoding:String):Stringstatichtmlspecialchars(string:String, ?flags:Int, ?encoding:String, double_encode:Bool = true):Stringstatichtmlspecialchars_decode(string:String, ?flags:Int):Stringstatichttp_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>staticignore_user_abort(?enable:Bool):Intstaticin_array(needle:Dynamic, haystack:NativeArray, strict:Bool = false):Boolstaticinclude_once(include_path:String):Voidstaticini_get(var_name:String):EitherType<Bool, String>staticinterface_exists(interface_name:String, autoload:Bool = true):Boolstaticintl_error_name(error_code:Int):Stringstaticintl_get_error_code():Intstaticintl_get_error_message():Stringstaticintl_is_failure(error_code:Int):Boolstaticis_callable(value:Dynamic, syntax_only:Bool = false, ?callable_name:String):Boolstaticis_executable(filename:String):Boolstaticis_numeric(value:Dynamic):Boolstaticis_readable(filename:String):Boolstaticis_subclass_of(value:Dynamic, className:String, allow_string:Bool = true):Boolstaticis_uploaded_file(filename:String):Boolstaticis_writable(filename:String):Boolstaticjson_encode(value:Dynamic, options:Int = 0, depth:Int = 512):EitherType<String, Bool>staticjson_last_error():Intstaticjson_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):Boolstaticmb_check_encoding(?str:String, ?encoding:String):Boolstaticmb_convert_encoding(str:String, to_encoding:String, ?from_encoding:Dynamic):Stringstaticmb_internal_encoding(?encoding:String):EitherType<Bool, String>staticmb_regex_encoding(?encoding:String):EitherType<Bool, String>staticmb_strpos(haystack:String, needle:String, ?offset:Int, ?encoding:String):EitherType<Int, Bool>staticmb_strrpos(haystack:String, needle:String, ?offset:Int, ?encoding:String):EitherType<Int, Bool>staticmb_strtolower(str:String, ?encoding:String):Stringstaticmb_strtoupper(str:String, ?encoding:String):Stringstaticmb_substitute_character(?substchar:EitherType<Int, String>):EitherType<Bool, EitherType<String, Int>>staticmethod_exists(object:Dynamic, method_name:String):Boolstaticmicrotime(get_as_float:Bool = false):EitherType<Float, String>staticmime_content_type(filename:String):EitherType<String, Bool>staticmktime(?hour:Int, ?minute:Int, ?second:Int, ?month:Int, ?day:Int, ?year:Int, ?is_dst:Int):EitherType<Int, Bool>staticmove_uploaded_file(filename:String, destination:String):Boolstaticmt_getrandmax():Intstaticnext(array:Ref<NativeArray>):Dynamicstaticnumber_format(num:Float, ?decimals:Int, ?decimal_separator:String, ?thousands_separator:String):Stringstaticob_end_clean():Boolstaticob_end_flush():Boolstaticob_get_clean():EitherType<String, Bool>staticob_get_contents():EitherType<String, Bool>staticob_get_flush():EitherType<String, Bool>staticob_get_length():EitherType<Int, Bool>staticob_get_level():Intstaticob_get_status(full_status:Bool = false):NativeArraystaticob_implicit_flush(flag:Int = 1):Voidstaticob_list_handlers():NativeIndexedArray<String>staticopcache_compile_file(file:String):Boolstaticopcache_get_status(get_scripts:Bool = true):EitherType<NativeAssocArray<Dynamic>, Bool>staticopcache_invalidate(script:String, force:Bool = false):Boolstaticopcache_is_script_cached(file:String):Boolstaticopcache_reset():Boolstaticparse_ini_file(filename:String, process_sections:Bool = false, ?scanner_mode:Int):EitherType<NativeAssocArray<Dynamic>, Bool>staticparse_ini_string(ini:String, process_sections:Bool = false, ?scanner_mode:Int):EitherType<NativeAssocArray<Dynamic>, Bool>staticpathinfo(path:String, ?options:Int):EitherType<String, NativeAssocArray<String>>staticphp_strip_whitespace(filename:String):Stringstaticphpversion(?extension:String):Stringstaticpreg_last_error():Intstaticpreg_match(pattern:String, subject:String, ?matches:NativeArray, ?flags:Int, ?offset:Int):EitherType<Bool, Int>staticpreg_match_all(pattern:String, subject:String, ?matches:NativeArray, ?flags:Int, ?offset:Int):EitherType<Bool, Int>staticpreg_quote(str:String, ?delimiter:String):Stringstaticpreg_replace(pattern:EitherType<String, NativeArray>, replacement:EitherType<String, NativeArray>, subject:EitherType<String, NativeArray>, limit:Int = -1, ?count:Int):EitherType<String, NativeArray>staticpreg_split(pattern:String, subject:String, limit:Int = -1, flags:Int = 0):EitherType<Bool, NativeArray>staticprev(array:Ref<NativeArray>):Dynamicstaticproc_close(process:Resource):Intstaticproc_get_status(process:Resource):EitherType<Bool, NativeAssocArray<Scalar>>staticproc_open(cmd:String, descriptorspec:NativeArray, pipes:NativeIndexedArray<Resource>, ?cwd:String, ?env:NativeArray, ?other_options:NativeArray):EitherType<Resource, Bool>staticproc_terminate(process:Resource, signal:Int = 15):Boolstaticproperty_exists(object:Dynamic, property_name:String):Boolstaticquoted_printable_decode(string:String):Stringstaticquoted_printable_encode(string:String):Stringstaticrandom_bytes(length:Int):Stringstaticrandom_int(min:Int, max:Int):Intstaticrawurldecode(str:String):Stringstaticrawurlencode(str:String):Stringstaticreaddir(?dir_handle:Resource):EitherType<String, Bool>staticreadlink(filename:String):EitherType<Bool, String>staticrealpath(path:String):EitherType<String, Bool>staticrequire_once(include_path:String):Voidstaticreset(array:Ref<NativeArray>):Dynamicstaticrestore_error_handler():Boolstaticrestore_exception_handler():Boolstaticsession_cache_expire(?new_cache_expire:Int):Intstaticsession_cache_limiter(?cache_limiter:String):Stringstaticsession_decode(data:String):Boolstaticsession_destroy():Boolstaticsession_encode():Stringstaticsession_id(?id:String):Stringstaticsession_module_name(?module:String):Stringstaticsession_name(?name:String):Stringstaticsession_regenerate_id(delete_old_session:Bool = false):Boolstaticsession_save_path(?path:String):Stringstaticsession_set_cookie_params(lifetime:Int, ?path:String, ?domain:String, secure:Bool = false, httponly:Bool = false):Boolstaticsession_set_cookie_params(options:NativeStructArray<{secure:Null<Bool>, samesite:Null<String>, path:Null<String>, lifetime:Null<Int>, httponly:Null<Bool>, domain:Null<String>}>):Boolstaticsession_set_save_handler(open:(String, String) ‑> Bool, close:() ‑> Bool, read:String ‑> String, write:(String, String) ‑> Bool, destroy:String ‑> Bool, gc:Int ‑> Bool, ?create_sid:() ‑> String, ?validate_sid:Function, ?update_timestamp:Function):Boolstaticsession_set_save_handler(sessionhandler:SessionHandlerInterface, register_shutdown:Bool = true):Boolstaticsession_start(?options:NativeArray):Boolstaticsession_status():Intstaticsession_unset():Voidstaticsession_write_close():Voidstaticset_error_handler(?error_handler:(Int, String, String, Int, Array<Dynamic>) ‑> Bool, ?error_types:Int):Dynamicstaticset_error_handler(error_handler:(Int, String) ‑> Bool, ?error_types:Int):Dynamicstaticset_error_handler(error_handler:(Int, String, String) ‑> Bool, ?error_types:Int):Dynamicstaticset_error_handler(error_handler:(Int, String, String, Int) ‑> Bool, ?error_types:Int):Dynamicstaticset_exception_handler(exception_handler:Throwable ‑> Void):Dynamicstaticset_include_path(new_include_path:String):Stringstaticset_time_limit(seconds:Int):Boolstaticsetcookie(name:String, value:String = "", expire:Int = 0, path:String = "", domain:String = "", secure:Bool = false, httponly:Bool = false):Boolstaticsetcookie(name:String, value:String = "", ?options:NativeStructArray<{secure:Null<Bool>, samesite:Null<String>, path:Null<String>, httponly:Null<Bool>, expires:Null<Int>, domain:Null<String>}>):Boolstaticsetlocale(category:Int, locale:Rest<String>):EitherType<Bool, String>staticsetlocale(category:Int, locale:NativeIndexedArray<String>):EitherType<Bool, String>staticsleep(seconds:Int):EitherType<Bool, Int>staticsocket_accept(stream:Resource):EitherType<Resource, Bool>staticsocket_bind(stream:Resource, host:String, port:Int):Boolstaticsocket_close(resource:Resource):Voidstaticsocket_connect(stream:Resource, host:String, port:Int):Boolstaticsocket_create(domain:Int, type:Int, protocol:Int):Resourcestaticsocket_export_stream(resource:Resource):EitherType<Bool, Resource>staticsocket_import_stream(resource:Resource):EitherType<Bool, Resource>staticsocket_listen(stream:Resource, connections:Int):Boolstaticsocket_read(resource:Resource, length:Int, ?type:Int):EitherType<Bool, String>staticsocket_select(read:NativeIndexedArray<Resource>, write:NativeIndexedArray<Resource>, other:NativeIndexedArray<Resource>, tv_sec:Int = 0, tv_usec:Int = 0):EitherType<Bool, Int>staticsocket_set_block(stream:Resource):Boolstaticsocket_set_nonblock(stream:Resource):Boolstaticsocket_shutdown(stream:Resource, rw:Int):Boolstaticsocket_write(resource:Resource, buffer:String, len:Int = 0):EitherType<Bool, Int>staticspl_autoload(class_name:String, ?file_extensions:String):Voidstaticspl_autoload_call(class_name:String):Voidstaticspl_autoload_extensions(?file_extensions:String):Stringstaticspl_autoload_register(?autoload_function:(className:String) ‑> Void, throw_exception:Bool = true, prepend:Bool = false):Boolstaticspl_autoload_unregister(autoload_function:(className:String) ‑> Void):Boolstaticspl_object_hash(obj:{}):Stringstaticspl_object_id(obj:{}):Intstaticsqlite_error_string(error_code:Int):Stringstaticsqlite_escape_string(item:String):Stringstaticstat(filename:String):EitherType<NativeArray, Bool>staticstr_repeat(input:String, multiplier:Int):Stringstaticstr_replace(search:EitherType<String, NativeArray>, replace:EitherType<String, NativeArray>, subject:EitherType<String, NativeArray>, ?count:Int):EitherType<String, NativeArray>staticstr_split(string:String, split_length:Int = 1):EitherType<Bool, NativeIndexedArray<String>>staticstr_starts_with(haystack:String, needle:String):Boolstaticstrcasecmp(str1:String, str2:String):Intstaticstream_get_contents(handle:Resource, maxlength:Int = -1, offset:Int = -1):EitherType<String, Bool>staticstream_select(read:NativeArray, write:NativeArray, except:NativeArray, tv_sec:Int, tv_usec:Int = 0):Boolstaticstream_set_blocking(stream:Resource, mode:Bool):Boolstaticstream_set_timeout(stream:Resource, seconds:Int, microseconds:Int = 0):Boolstaticstream_socket_accept(server_socket:Resource, ?timeout:Float, ?peername:Ref<String>):EitherType<Resource, Bool>staticstream_socket_client(remote_socket:String, ?errno:Ref<Int>, ?errstr:Ref<String>, ?timeout:Float, ?flags:Int, ?context:Resource):EitherType<Resource, Bool>staticstream_socket_get_name(stream:Resource, want_peer:Bool):EitherType<String, Bool>staticstream_socket_server(local_socket:String, ?errno:Ref<Int>, ?errstr:Ref<String>, ?flags:Int, ?context:Resource):EitherType<Resource, Bool>staticstream_socket_shutdown(stream:Resource, how:Int):Boolstaticstrip_tags(str:String, ?allowable_tags:EitherType<String, Array<String>>):Stringstaticstrncasecmp(str1:String, str2:String, len:Int):Intstaticstrtolower(string:String):Stringstaticstrtoupper(string:String):Stringstaticstrtr(str:String, from:String, to:String):Stringstaticstrtr(str:String, from:NativeAssocArray<String>):Stringstaticsubstr_replace(string:EitherType<String, NativeArray>, replacement:EitherType<String, NativeArray>, start:EitherType<Int, NativeArray>, ?length:EitherType<Int, NativeArray>):EitherType<String, NativeArray>staticsys_get_temp_dir():Stringstatictmpfile():EitherType<Resource, Bool>staticunpack(format:String, data:String):NativeArraystaticunserialize(str:String, ?options:NativeArray):Dynamicstaticutf8_decode(data:String):Stringstaticutf8_encode(data:String):Stringstaticversion_compare(version1:String, version2:String):Intstaticversion_compare(version1:String, version2:String, comparisonOperator:String):Bool