package php
Available on php
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):TSee also:
staticacos(arg:Float):FloatSee also:
staticarray_diff(array:Rest<NativeArray>):NativeArraySee also:
staticarray_fill(start_index:Int, num:Int, value:Dynamic):NativeArraySee also:
staticarray_filter(array:NativeArray, ?callback:(Dynamic, Dynamic) ‑> Bool, flag:Int = 0):NativeArraystaticarray_filter(array:NativeArray, callback:Dynamic ‑> Bool, ?flag:Int):NativeArraySee also:
staticarray_key_exists(key:EitherType<String, Int>, arr:NativeArray):BoolSee also:
staticarray_keys(arr:NativeArray):NativeIndexedArray<EitherType<String, Int>>See also:
staticarray_map(callback:EitherType<Dynamic ‑> Dynamic, String>, array:Rest<NativeArray>):NativeArraySee also:
staticarray_merge(array:Rest<NativeArray>):NativeArraySee also:
staticarray_pad(array:NativeArray, size:Int, value:Dynamic):NativeArraySee also:
staticarray_pop(array:NativeArray):DynamicSee also:
staticarray_push(array:Ref<NativeArray>, value:Rest<Dynamic>):IntSee also:
staticarray_reverse(array:NativeArray, preserve_keys:Bool = false):NativeArraySee also:
staticarray_search(needle:Dynamic, haystack:NativeArray, strict:Bool = false):EitherType<Bool, EitherType<String, Int>>See also:
staticarray_shift(array:Ref<NativeArray>):DynamicSee also:
staticarray_slice(array:NativeArray, offset:Int, ?length:Int, preserve_keys:Bool = false):NativeArraySee also:
staticarray_splice(array:Ref<NativeArray>, offset:Int, lenght:Int = 0, ?replacement:Dynamic):NativeArraySee also:
staticarray_unshift(arr:Ref<NativeArray>, value:Rest<Dynamic>):IntSee also:
staticarray_values(arr:NativeArray):NativeIndexedArray<Dynamic>See also:
staticasin(arg:Float):FloatSee also:
staticatan(arg:Float):FloatSee also:
staticatan2(y:Float, x:Float):FloatSee also:
staticbase64_decode(data:String, strict:Bool = false):EitherType<String, Bool>See also:
staticbase64_encode(data:String):StringSee also:
staticbin2hex(str:String):StringSee also:
staticbindec(binary_string:String):FloatSee also:
staticboolval(value:Dynamic):BoolSee also:
staticcall_user_func(callback:Dynamic, arguments:Rest<Dynamic>):DynamicSee also:
staticcall_user_func_array(callback:Dynamic, arguments:NativeArray):DynamicSee also:
staticceil(arg:Float):FloatSee also:
staticchdir(directory:String):BoolSee also:
staticchr(code:Int):StringSee also:
staticchunk_split(body:String, chunklen:Int = 76, end:String = "\r\n"):StringSee also:
staticclass_alias(original:String, alias:String, autoload:Bool = true):BoolSee also:
staticclass_exists(class_name:String, autoload:Bool = true):BoolSee also:
staticclearstatcache(clear_realpath_cache:Bool = false, ?filename:String):BoolSee also:
staticclosedir(dir_handle:Resource):VoidSee also:
staticconstant(name:String):DynamicSee also:
staticcopy(source:String, dest:String, ?context:Resource):BoolSee also:
staticcos(arg:Float):FloatSee also:
staticcount(array:Dynamic, ?mode:Int):IntSee also:
staticcurrent(array:Ref<NativeArray>):DynamicSee also:
staticdate(format:String, ?timestamp:Int):EitherType<String, Bool>See also:
staticdebug_backtrace(?options:Int, ?limit:Int):NativeIndexedArray<NativeAssocArray<Dynamic>>See also:
staticdecbin(number:Int):StringSee also:
staticdechex(number:Int):StringSee also:
staticdefine(name:String, value:Dynamic, case_insensitive:Bool = false):BoolSee also:
staticdefined(name:String):BoolSee also:
staticdie(status:EitherType<String, Int>):VoidSee also:
staticdirname(path:String, levels:Int = 1):StringSee also:
staticeach(array:Ref<NativeArray>):NativeArraySee also:
staticecho(args:Rest<String>):VoidSee also:
staticend(array:Ref<NativeArray>):DynamicSee also:
staticerror_reporting(?level:Int):IntSee also:
staticexit(status:EitherType<String, Int>):VoidSee also:
staticexp(arg:Float):FloatSee also:
staticexplode(delimiter:String, string:String, ?limit:Int):EitherType<Bool, NativeIndexedArray<String>>See also:
staticextension_loaded(name:String):BoolSee also:
staticfclose(handle:Resource):BoolSee also:
staticfeof(handle:Resource):BoolSee also:
staticfflush(handle:Resource):BoolSee also:
staticfgetc(handle:Resource):EitherType<Bool, String>See also:
staticfgets(handle:Resource):EitherType<Bool, String>See also:
staticfile_exists(filename:String):BoolSee also:
staticfile_get_contents(filename:String, use_include_path:Bool = false, ?context:Resource, offset:Int = 0, ?maxlen:Int):EitherType<String, Bool>See also:
staticfile_put_contents(filename:String, data:Dynamic, flags:Int = 0, ?context:Resource):EitherType<Int, Bool>See also:
staticfiletype(filename:String):EitherType<String, Bool>See also:
staticfloatval(value:Dynamic):FloatSee also:
staticfloor(arg:Float):FloatSee also:
staticflush():VoidSee also:
staticfopen(filename:String, mode:String, use_include_path:Bool = false, ?context:Resource):EitherType<Bool, Resource>See also:
staticfpassthru(handle:Resource):IntSee also:
staticfread(handle:Resource, length:Int):EitherType<Bool, String>See also:
staticfseek(handle:Resource, offset:Int, ?whence:Int):EitherType<Int, Bool>See also:
staticfstat(handle:Resource):NativeArraySee also:
staticftell(handle:Resource):EitherType<Int, Bool>See also:
staticfunc_get_args():NativeIndexedArray<Dynamic>See also:
staticfunction_exists(function_name:String):BoolSee also:
staticfwrite(handle:Resource, string:String, ?length:Int):EitherType<Int, Bool>See also:
staticgc_collect_cycles():IntSee also:
staticget_class(?object:{}):EitherType<Bool, String>See also:
staticget_include_path():StringSee also:
staticget_object_vars(object:{}):NativeAssocArray<Dynamic>See also:
staticget_parent_class(?object:Dynamic):EitherType<Bool, String>See also:
staticgetallheaders():NativeAssocArray<Dynamic>See also:
staticgetcwd():EitherType<String, Bool>See also:
staticgetenv(varname:String):EitherType<String, Bool>See also:
staticgethostbyaddr(ip_address:String):EitherType<String, Bool>See also:
staticgethostbyname(hostname:String):StringSee also:
staticgetprotobyname(name:String):EitherType<Int, Bool>See also:
staticglob(pattern:String, flags:Int = 0):NativeArraySee also:
staticgmdate(format:String, ?timestamp:Int):EitherType<String, Bool>See also:
staticgmmktime(?hour:Int, ?minute:Int, ?second:Int, ?month:Int, ?day:Int, ?year:Int, ?is_dst:Int):IntSee also:
staticgzcompress(data:String, ?level:Int, ?encoding:Int):EitherType<String, Bool>See also:
staticgzuncompress(data:String, ?length:Int):EitherType<String, Bool>See also:
statichash(algo:String, str:String, raw_output:Bool = false):StringSee also:
staticheader(string:String, replace:Bool = true, ?http_response_code:Int):VoidSee also:
statichex2bin(str:String):EitherType<String, Bool>See also:
statichexdec(hex_string:String):IntSee also:
statichtmlspecialchars(string:String, ?flags:Int, ?encoding:String, double_encode:Bool = true):StringSee also:
statichtmlspecialchars_decode(string:String, ?flags:Int):StringSee also:
staticimplode(glue:String, pieces:NativeArray):Stringstaticimplode(pieces:NativeArray):StringSee also:
staticin_array(needle:Dynamic, haystack:NativeArray, strict:Bool = false):BoolSee also:
staticinclude(include_path:String):VoidSee also:
staticinclude_once(include_path:String):VoidSee also:
staticini_get(var_name:String):EitherType<Bool, String>See also:
staticini_set(var_name:String, newvalue:String):EitherType<Bool, String>See also:
staticinterface_exists(interface_name:String, autoload:Bool = true):BoolSee also:
staticintval(value:Dynamic, base:Int = 10):IntSee also:
staticis_array(value:Dynamic):BoolChecks if values is php.NativeArray
See also:
staticis_bool(value:Dynamic):BoolSee also:
staticis_callable(value:Dynamic, syntax_only:Bool = false, ?callable_name:String):BoolSee also:
staticis_dir(filename:String):BoolSee also:
staticis_finite(arg:Float):BoolSee also:
staticis_float(value:Dynamic):BoolSee also:
staticis_int(value:Dynamic):BoolSee also:
staticis_nan(arg:Float):BoolSee also:
staticis_null(value:Dynamic):BoolSee also:
staticis_numeric(value:Dynamic):BoolSee also:
staticis_object(value:Dynamic):BoolSee also:
staticis_string(value:Dynamic):BoolSee also:
staticis_subclass_of(value:Dynamic, className:String, allow_string:Bool = true):BoolSee also:
staticis_uploaded_file(filename:String):BoolSee also:
staticisset(value:Dynamic, args:Rest<Dynamic>):BoolSee also:
staticjson_decode(json:String, assoc:Bool = false, depth:Int = 512, options:Int = 512):DynamicSee also:
staticjson_encode(value:Dynamic, options:Int = 0, depth:Int = 512):EitherType<String, Bool>See also:
staticjson_last_error():IntSee also:
staticjson_last_error_msg():EitherType<String, Bool>See also:
statickey(array:NativeArray):EitherType<String, Int>See also:
staticlog(arg:Float):FloatSee also:
staticltrim(str:String, ?character_mask:String):StringSee also:
staticmail(to:String, subject:String, message:String, ?additional_headers:String, ?additional_parameters:String):BoolSee also:
staticmax(values:Rest<Dynamic>):DynamicSee also:
staticmb_check_encoding(?str:String, ?encoding:String):BoolSee also:
staticmb_chr(cp:Int, ?encoding:String):StringSee also:
staticmb_convert_encoding(str:String, to_encoding:String, ?from_encoding:Dynamic):StringSee also:
staticmb_internal_encoding(?encoding:String):EitherType<Bool, String>See also:
staticmb_ord(str:String, ?encoding:String):IntSee also:
staticmb_regex_encoding(?encoding:String):EitherType<Bool, String>See also:
staticmb_split(pattern:String, str:String, ?limit:Int):NativeIndexedArray<String>See also:
staticmb_strlen(str:String, ?encoding:String):EitherType<Int, Bool>See also:
staticmb_strpos(haystack:String, needle:String, ?offset:Int, ?encoding:String):EitherType<Int, Bool>See also:
staticmb_strrpos(haystack:String, needle:String, ?offset:Int, ?encoding:String):EitherType<Int, Bool>See also:
staticmb_strtolower(str:String, ?encoding:String):StringSee also:
staticmb_strtoupper(str:String, ?encoding:String):StringSee also:
staticmb_substr(str:String, start:Int, ?length:Int, ?encoding:String):StringSee also:
staticmd5(str:String, raw_output:Bool = false):StringSee also:
staticmethod_exists(object:Dynamic, method_name:String):BoolSee also:
staticmicrotime(get_as_float:Bool = false):EitherType<Float, String>See also:
staticmin(values:Rest<Dynamic>):DynamicSee also:
staticmkdir(pathname:String, mode:Int = 511, recursive:Bool = false, ?context:Resource):BoolSee also:
staticmktime(?hour:Int, ?minute:Int, ?second:Int, ?month:Int, ?day:Int, ?year:Int, ?is_dst:Int):EitherType<Int, Bool>See also:
staticmove_uploaded_file(filename:String, destination:String):BoolSee also:
staticmt_getrandmax():IntSee also:
staticmt_rand(base:Int, exp:Int):Intstaticmt_rand():IntSee also:
staticnext(array:Ref<NativeArray>):DynamicSee also:
staticopendir(path:String, ?context:Resource):EitherType<Resource, Bool>See also:
staticord(string:String):IntSee also:
staticpack(format:String, args:Rest<Dynamic>):StringSee also:
staticphp_uname(mode:String = "a"):StringSee also:
staticphpversion(?extension:String):StringSee also:
staticpow(base:Float, exp:Float):FloatSee also:
staticpreg_last_error():IntSee also:
staticpreg_match(pattern:String, subject:String, ?matches:NativeArray, ?flags:Int, ?offset:Int):EitherType<Bool, Int>See also:
staticpreg_match_all(pattern:String, subject:String, ?matches:NativeArray, ?flags:Int, ?offset:Int):EitherType<Bool, Int>See also:
staticpreg_quote(str:String, ?delimiter:String):StringSee also:
staticpreg_replace(pattern:EitherType<String, NativeArray>, replacement:EitherType<String, NativeArray>, subject:EitherType<String, NativeArray>, limit:Int = -1, ?count:Int):EitherType<String, NativeArray>See also:
staticpreg_split(pattern:String, subject:String, limit:Int = -1, flags:Int = 0):EitherType<Bool, NativeArray>See also:
staticprev(array:Ref<NativeArray>):DynamicSee also:
staticproc_close(process:Resource):IntSee also:
staticproc_get_status(process:Resource):EitherType<Bool, NativeAssocArray<Scalar>>See also:
staticproc_open(cmd:String, descriptorspec:NativeArray, pipes:NativeIndexedArray<Resource>, ?cwd:String, ?env:NativeArray, ?other_options:NativeArray):EitherType<Resource, Bool>See also:
staticproc_terminate(process:Resource, signal:Int = 15):BoolSee also:
staticproperty_exists(object:Dynamic, property_name:String):BoolSee also:
staticputenv(setting:String):BoolSee also:
staticrawurldecode(str:String):StringSee also:
staticrawurlencode(str:String):StringSee also:
staticreaddir(?dir_handle:Resource):EitherType<String, Bool>See also:
staticrealpath(path:String):EitherType<String, Bool>See also:
staticrename(oldname:String, newname:String, ?context:Resource):BoolSee also:
staticrequire(include_path:String):VoidSee also:
staticrequire_once(include_path:String):VoidSee also:
staticreset(array:Ref<NativeArray>):DynamicSee also:
staticrestore_error_handler():BoolSee also:
staticrestore_exception_handler():BoolSee also:
staticrewind(handle:Resource):BoolSee also:
staticrewinddir(?dir_handle:Resource):VoidSee also:
staticrmdir(dirname:String, ?context:Resource):BoolSee also:
staticround(val:Float, precision:Int = 0, ?mode:Int):FloatSee also:
staticrtrim(str:String, ?character_mask:String):StringSee also:
staticserialize(value:Dynamic):StringSee also:
staticsession_cache_expire(?new_cache_expire:Int):IntSee also:
staticsession_cache_limiter(?cache_limiter:String):StringSee also:
staticsession_get_cookie_params():NativeAssocArray<Dynamic>See also:
staticsession_id(?id:String):StringSee also:
staticsession_module_name(?module:String):StringSee also:
staticsession_name(?name:String):StringSee also:
staticsession_regenerate_id(delete_old_session:Bool = false):BoolSee also:
staticsession_save_path(?path:String):StringSee also:
staticsession_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>}>):BoolSee also:
staticsession_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):BoolSee also:
staticsession_start(?options:NativeArray):BoolSee also:
staticsession_unset():VoidSee also:
staticsession_write_close():VoidSee also:
staticset_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):DynamicSee also:
staticset_exception_handler(exception_handler:Throwable ‑> Void):DynamicSee also:
staticset_include_path(new_include_path:String):StringSee also:
staticset_time_limit(seconds:Int):BoolSee also:
staticsetcookie(name:String, value:String = "", expire:Int = 0, path:String = "", domain:String = "", secure:Bool = false, httponly:Bool = false):BoolSee also:
staticsetlocale(category:Int, locale:Rest<String>):EitherType<Bool, String>staticsetlocale(category:Int, locale:NativeIndexedArray<String>):EitherType<Bool, String>See also:
staticsha1(str:String, raw_output:Bool = false):StringSee also:
staticsin(arg:Float):FloatSee also:
staticsleep(seconds:Int):EitherType<Bool, Int>See also:
staticsocket_accept(stream:Resource):EitherType<Resource, Bool>See also:
staticsocket_bind(stream:Resource, host:String, port:Int):BoolSee also:
staticsocket_close(resource:Resource):VoidSee also:
staticsocket_connect(stream:Resource, host:String, port:Int):BoolSee also:
staticsocket_create(domain:Int, type:Int, protocol:Int):ResourceSee also:
staticsocket_export_stream(resource:Resource):EitherType<Bool, Resource>See also:
staticsocket_getpeername(stream:Resource, host:Ref<String>, port:Ref<Int>):BoolSee also:
staticsocket_getsockname(stream:Resource, host:Ref<String>, port:Ref<Int>):BoolSee also:
staticsocket_import_stream(resource:Resource):EitherType<Bool, Resource>See also:
staticsocket_listen(stream:Resource, connections:Int):BoolSee also:
staticsocket_read(resource:Resource, length:Int, ?type:Int):EitherType<Bool, String>See also:
staticsocket_select(read:NativeIndexedArray<Resource>, write:NativeIndexedArray<Resource>, other:NativeIndexedArray<Resource>, tv_sec:Int = 0, tv_usec:Int = 0):EitherType<Bool, Int>See also:
staticsocket_set_block(stream:Resource):BoolSee also:
staticsocket_set_nonblock(stream:Resource):BoolSee also:
staticsocket_set_option(stream:Resource, level:Int, option:Int, val:Any):BoolSee also:
staticsocket_shutdown(stream:Resource, rw:Int):BoolSee also:
staticsocket_write(resource:Resource, buffer:String, len:Int = 0):EitherType<Bool, Int>See also:
staticspl_autoload(class_name:String, ?file_extensions:String):VoidSee also:
staticspl_autoload_call(class_name:String):VoidSee also:
staticspl_autoload_extensions(?file_extensions:String):StringSee also:
staticspl_autoload_functions():EitherType<NativeIndexedArray<Function>, Bool>See also:
staticspl_autoload_register(?autoload_function:(className:String) ‑> Void, throw_exception:Bool = true, prepend:Bool = false):BoolSee also:
staticspl_autoload_unregister(autoload_function:(className:String) ‑> Void):BoolSee also:
staticspl_object_hash(obj:{}):StringSee also:
staticsprintf(format:String, args:Rest<Dynamic>):EitherType<String, Bool>See also:
staticsqlite_error_string(error_code:Int):StringSee also:
staticsqlite_escape_string(item:String):StringSee also:
staticsqrt(arg:Float):FloatSee also:
staticstat(filename:String):EitherType<NativeArray, Bool>See also:
staticstr_pad(input:String, pad_length:Int, pad_String:String = " ", ?pad_type:Int):StringSee also:
staticstr_repeat(input:String, multiplier:Int):StringSee also:
staticstr_replace(search:EitherType<String, NativeArray>, replace:EitherType<String, NativeArray>, subject:EitherType<String, NativeArray>, ?count:Int):EitherType<String, NativeArray>See also:
staticstr_split(string:String, split_length:Int = 1):EitherType<Bool, NativeIndexedArray<String>>See also:
staticstrcasecmp(str1:String, str2:String):IntSee also:
staticstrcmp(str1:String, str2:String):IntSee also:
staticstream_get_contents(handle:Resource, maxlength:Int = -1, offset:Int = -1):EitherType<String, Bool>See also:
staticstream_select(read:NativeArray, write:NativeArray, except:NativeArray, tv_sec:Int, tv_usec:Int = 0):BoolSee also:
staticstream_set_blocking(stream:Resource, mode:Bool):BoolSee also:
staticstream_set_timeout(stream:Resource, seconds:Int, microseconds:Int = 0):BoolSee also:
staticstream_socket_accept(server_socket:Resource, ?timeout:Float, ?peername:Ref<String>):EitherType<Resource, Bool>See also:
staticstream_socket_client(remote_socket:String, ?errno:Ref<Int>, ?errstr:Ref<String>, ?timeout:Float, ?flags:Int, ?context:Resource):EitherType<Resource, Bool>See also:
staticstream_socket_get_name(stream:Resource, want_peer:Bool):EitherType<String, Bool>See also:
staticstream_socket_server(local_socket:String, ?errno:Ref<Int>, ?errstr:Ref<String>, ?flags:Int, ?context:Resource):EitherType<Resource, Bool>See also:
staticstream_socket_shutdown(stream:Resource, how:Int):BoolSee also:
staticstrftime(format:String, ?timestamp:Int):EitherType<String, Bool>See also:
staticstrlen(string:String):IntSee also:
staticstrncasecmp(str1:String, str2:String, len:Int):IntSee also:
staticstrpos(haystack:String, needle:String, offset:Int = 0):EitherType<Bool, Int>See also:
staticstrrpos(haystack:String, needle:String, offset:Int = 0):EitherType<Bool, Int>See also:
staticstrtolower(string:String):StringSee also:
staticstrtotime(time:String, ?now:Int):EitherType<Int, Bool>See also:
staticstrtoupper(string:String):StringSee also:
staticstrtr(str:String, from:String, to:String):Stringstaticstrtr(str:String, from:NativeAssocArray<String>):StringSee also:
staticstrval(value:Dynamic):StringSee also:
staticsubstr(string:String, start:Int, ?length:Int):EitherType<Bool, String>See also:
staticsubstr_count(haystack:String, needle:String, ?offset:Int, ?length:Int):IntSee also:
staticsubstr_replace(string:EitherType<String, NativeArray>, replacement:EitherType<String, NativeArray>, start:EitherType<Int, NativeArray>, ?length:EitherType<Int, NativeArray>):EitherType<String, NativeArray>See also:
staticsystem(command:String, ?return_var:Ref<Int>):EitherType<String, Bool>See also:
statictan(arg:Float):FloatSee also:
statictime():IntSee also:
statictrim(str:String, ?character_mask:String):StringSee also:
staticucwords(str:String, ?delimiters:String):StringSee also:
staticunlink(filename:String, ?context:Resource):BoolSee also:
staticunpack(format:String, data:String):NativeArraySee also:
staticunserialize(str:String, ?options:NativeArray):DynamicSee also:
staticunset(value:Dynamic, values:Rest<Dynamic>):VoidSee also:
staticurldecode(str:String):StringSee also:
staticurlencode(str:String):StringSee also:
staticusleep(micro_seconds:Int):VoidSee also:
staticusort(array:Ref<NativeArray>, value_compare_func:(Dynamic, Dynamic) ‑> Int):BoolSee also:
staticutf8_decode(data:String):StringSee also:
staticutf8_encode(data:String):StringSee also:
staticvar_dump(args:Rest<Dynamic>):VoidSee also:
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/php/Global.html