Global
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
.
Static methods
staticabs<T>(number:T):T
See also:
staticacos(arg:Float):Float
See also:
staticarray_diff(array:Rest<NativeArray>):NativeArray
See also:
staticarray_fill(start_index:Int, num:Int, value:Dynamic):NativeArray
See also:
staticarray_filter(array:NativeArray, ?callback:(Dynamic, Dynamic) ‑> Bool, flag:Int = 0):NativeArray
staticarray_filter(array:NativeArray, callback:Dynamic ‑> Bool, ?flag:Int):NativeArray
See also:
staticarray_key_exists(key:EitherType<String, Int>, arr:NativeArray):Bool
See also:
staticarray_keys(arr:NativeArray):NativeIndexedArray<EitherType<String, Int>>
See also:
staticarray_map(callback:EitherType<Dynamic ‑> Dynamic, String>, array:Rest<NativeArray>):NativeArray
See also:
staticarray_merge(array:Rest<NativeArray>):NativeArray
See also:
staticarray_pad(array:NativeArray, size:Int, value:Dynamic):NativeArray
See also:
staticarray_pop(array:NativeArray):Dynamic
See also:
staticarray_push(array:Ref<NativeArray>, value:Rest<Dynamic>):Int
See also:
staticarray_reverse(array:NativeArray, preserve_keys:Bool = false):NativeArray
See also:
staticarray_search(needle:Dynamic, haystack:NativeArray, strict:Bool = false):EitherType<Bool, EitherType<String, Int>>
See also:
staticarray_shift(array:Ref<NativeArray>):Dynamic
See also:
staticarray_slice(array:NativeArray, offset:Int, ?length:Int, preserve_keys:Bool = false):NativeArray
See also:
staticarray_splice(array:Ref<NativeArray>, offset:Int, lenght:Int = 0, ?replacement:Dynamic):NativeArray
See also:
staticarray_unshift(arr:Ref<NativeArray>, value:Rest<Dynamic>):Int
See also:
staticarray_values(arr:NativeArray):NativeIndexedArray<Dynamic>
See also:
staticasin(arg:Float):Float
See also:
staticatan(arg:Float):Float
See also:
staticatan2(y:Float, x:Float):Float
See also:
staticbase64_decode(data:String, strict:Bool = false):EitherType<String, Bool>
See also:
staticbase64_encode(data:String):String
See also:
staticbin2hex(str:String):String
See also:
staticbindec(binary_string:String):Float
See also:
staticboolval(value:Dynamic):Bool
See also:
staticcall_user_func(callback:Dynamic, arguments:Rest<Dynamic>):Dynamic
See also:
staticcall_user_func_array(callback:Dynamic, arguments:NativeArray):Dynamic
See also:
staticceil(arg:Float):Float
See also:
staticchdir(directory:String):Bool
See also:
staticchr(code:Int):String
See also:
staticchunk_split(body:String, chunklen:Int = 76, end:String = "\r\n"):String
See also:
staticclass_alias(original:String, alias:String, autoload:Bool = true):Bool
See also:
staticclass_exists(class_name:String, autoload:Bool = true):Bool
See also:
staticclearstatcache(clear_realpath_cache:Bool = false, ?filename:String):Bool
See also:
staticclosedir(dir_handle:Resource):Void
See also:
staticconstant(name:String):Dynamic
See also:
staticcopy(source:String, dest:String, ?context:Resource):Bool
See also:
staticcos(arg:Float):Float
See also:
staticcount(array:Dynamic, ?mode:Int):Int
See also:
staticcurrent(array:Ref<NativeArray>):Dynamic
See 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):String
See also:
staticdechex(number:Int):String
See also:
staticdefine(name:String, value:Dynamic, case_insensitive:Bool = false):Bool
See also:
staticdefined(name:String):Bool
See also:
staticdie(status:EitherType<String, Int>):Void
See also:
staticdirname(path:String, levels:Int = 1):String
See also:
staticeach(array:Ref<NativeArray>):NativeArray
See also:
staticecho(args:Rest<String>):Void
See also:
staticend(array:Ref<NativeArray>):Dynamic
See also:
staticerror_reporting(?level:Int):Int
See also:
staticexit(status:EitherType<String, Int>):Void
See also:
staticexp(arg:Float):Float
See also:
staticexplode(delimiter:String, string:String, ?limit:Int):EitherType<Bool, NativeIndexedArray<String>>
See also:
staticextension_loaded(name:String):Bool
See also:
staticfclose(handle:Resource):Bool
See also:
staticfeof(handle:Resource):Bool
See also:
staticfflush(handle:Resource):Bool
See also:
staticfgetc(handle:Resource):EitherType<Bool, String>
See also:
staticfgets(handle:Resource):EitherType<Bool, String>
See also:
staticfile_exists(filename:String):Bool
See 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):Float
See also:
staticfloor(arg:Float):Float
See also:
staticflush():Void
See also:
staticfopen(filename:String, mode:String, use_include_path:Bool = false, ?context:Resource):EitherType<Bool, Resource>
See also:
staticfpassthru(handle:Resource):Int
See 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):NativeArray
See also:
staticftell(handle:Resource):EitherType<Int, Bool>
See also:
staticfunc_get_args():NativeIndexedArray<Dynamic>
See also:
staticfunction_exists(function_name:String):Bool
See also:
staticfwrite(handle:Resource, string:String, ?length:Int):EitherType<Int, Bool>
See also:
staticgc_collect_cycles():Int
See also:
staticget_class(?object:{}):EitherType<Bool, String>
See also:
staticget_include_path():String
See 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):String
See also:
staticgetprotobyname(name:String):EitherType<Int, Bool>
See also:
staticglob(pattern:String, flags:Int = 0):NativeArray
See 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):Int
See 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):String
See also:
staticheader(string:String, replace:Bool = true, ?http_response_code:Int):Void
See also:
statichex2bin(str:String):EitherType<String, Bool>
See also:
statichexdec(hex_string:String):Int
See also:
statichtmlspecialchars(string:String, ?flags:Int, ?encoding:String, double_encode:Bool = true):String
See also:
statichtmlspecialchars_decode(string:String, ?flags:Int):String
See also:
staticimplode(glue:String, pieces:NativeArray):String
staticimplode(pieces:NativeArray):String
See also:
staticin_array(needle:Dynamic, haystack:NativeArray, strict:Bool = false):Bool
See also:
staticinclude(include_path:String):Void
See also:
staticinclude_once(include_path:String):Void
See 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):Bool
See also:
staticintval(value:Dynamic, base:Int = 10):Int
See also:
staticis_array(value:Dynamic):Bool
Checks if values
is php.NativeArray
See also:
staticis_bool(value:Dynamic):Bool
See also:
staticis_callable(value:Dynamic, syntax_only:Bool = false, ?callable_name:String):Bool
See also:
staticis_dir(filename:String):Bool
See also:
staticis_finite(arg:Float):Bool
See also:
staticis_float(value:Dynamic):Bool
See also:
staticis_int(value:Dynamic):Bool
See also:
staticis_nan(arg:Float):Bool
See also:
staticis_null(value:Dynamic):Bool
See also:
staticis_numeric(value:Dynamic):Bool
See also:
staticis_object(value:Dynamic):Bool
See also:
staticis_string(value:Dynamic):Bool
See also:
staticis_subclass_of(value:Dynamic, className:String, allow_string:Bool = true):Bool
See also:
staticis_uploaded_file(filename:String):Bool
See also:
staticisset(value:Dynamic, args:Rest<Dynamic>):Bool
See also:
staticjson_decode(json:String, assoc:Bool = false, depth:Int = 512, options:Int = 512):Dynamic
See also:
staticjson_encode(value:Dynamic, options:Int = 0, depth:Int = 512):EitherType<String, Bool>
See also:
staticjson_last_error():Int
See also:
staticjson_last_error_msg():EitherType<String, Bool>
See also:
statickey(array:NativeArray):EitherType<String, Int>
See also:
staticlog(arg:Float):Float
See also:
staticltrim(str:String, ?character_mask:String):String
See also:
staticmail(to:String, subject:String, message:String, ?additional_headers:String, ?additional_parameters:String):Bool
See also:
staticmax(values:Rest<Dynamic>):Dynamic
See also:
staticmb_check_encoding(?str:String, ?encoding:String):Bool
See also:
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
See also:
staticmb_internal_encoding(?encoding:String):EitherType<Bool, String>
See also:
staticmb_ord(str:String, ?encoding:String):Int
See also:
- http://php.net/manual/en/function.mb-ord.php (Polyfilled for php 7.0)
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):String
See also:
staticmb_strtoupper(str:String, ?encoding:String):String
See also:
staticmb_substr(str:String, start:Int, ?length:Int, ?encoding:String):String
See also:
staticmd5(str:String, raw_output:Bool = false):String
See also:
staticmethod_exists(object:Dynamic, method_name:String):Bool
See also:
staticmicrotime(get_as_float:Bool = false):EitherType<Float, String>
See also:
staticmin(values:Rest<Dynamic>):Dynamic
See also:
staticmkdir(pathname:String, mode:Int = 511, recursive:Bool = false, ?context:Resource):Bool
See 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):Bool
See also:
staticmt_getrandmax():Int
See also:
staticmt_rand(base:Int, exp:Int):Int
staticmt_rand():Int
See also:
staticnext(array:Ref<NativeArray>):Dynamic
See also:
staticopendir(path:String, ?context:Resource):EitherType<Resource, Bool>
See also:
staticord(string:String):Int
See also:
staticpack(format:String, args:Rest<Dynamic>):String
See also:
staticphp_uname(mode:String = "a"):String
See also:
staticphpversion(?extension:String):String
See also:
staticpow(base:Float, exp:Float):Float
See also:
staticpreg_last_error():Int
See 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):String
See 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>):Dynamic
See also:
staticproc_close(process:Resource):Int
See 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):Bool
See also:
staticproperty_exists(object:Dynamic, property_name:String):Bool
See also:
staticputenv(setting:String):Bool
See also:
staticrawurldecode(str:String):String
See also:
staticrawurlencode(str:String):String
See 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):Bool
See also:
staticrequire(include_path:String):Void
See also:
staticrequire_once(include_path:String):Void
See also:
staticreset(array:Ref<NativeArray>):Dynamic
See also:
staticrestore_error_handler():Bool
See also:
staticrestore_exception_handler():Bool
See also:
staticrewind(handle:Resource):Bool
See also:
staticrewinddir(?dir_handle:Resource):Void
See also:
staticrmdir(dirname:String, ?context:Resource):Bool
See also:
staticround(val:Float, precision:Int = 0, ?mode:Int):Float
See also:
staticrtrim(str:String, ?character_mask:String):String
See also:
staticserialize(value:Dynamic):String
See also:
staticsession_cache_expire(?new_cache_expire:Int):Int
See also:
staticsession_cache_limiter(?cache_limiter:String):String
See also:
staticsession_get_cookie_params():NativeAssocArray<Dynamic>
See also:
staticsession_id(?id:String):String
See also:
staticsession_module_name(?module:String):String
See also:
staticsession_name(?name:String):String
See also:
staticsession_regenerate_id(delete_old_session:Bool = false):Bool
See also:
staticsession_save_path(?path:String):String
See also:
staticsession_set_cookie_params(lifetime:Int, ?path:String, ?domain:String, secure:Bool = false, httponly:Bool = false):Bool
staticsession_set_cookie_params(options:NativeStructArray<{secure:Null<Bool>, samesite:Null<String>, path:Null<String>, lifetime:Null<Int>, httponly:Null<Bool>, domain:Null<String>}>):Bool
See 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):Bool
staticsession_set_save_handler(sessionhandler:SessionHandlerInterface, register_shutdown:Bool = true):Bool
See also:
staticsession_start(?options:NativeArray):Bool
See also:
staticsession_unset():Void
See also:
staticsession_write_close():Void
See also:
staticset_error_handler(?error_handler:(Int, String, String, Int, Array<Dynamic>) ‑> Bool, ?error_types:Int):Dynamic
staticset_error_handler(error_handler:(Int, String) ‑> Bool, ?error_types:Int):Dynamic
staticset_error_handler(error_handler:(Int, String, String) ‑> Bool, ?error_types:Int):Dynamic
staticset_error_handler(error_handler:(Int, String, String, Int) ‑> Bool, ?error_types:Int):Dynamic
See also:
staticset_exception_handler(exception_handler:Throwable ‑> Void):Dynamic
See also:
staticset_include_path(new_include_path:String):String
See also:
staticset_time_limit(seconds:Int):Bool
See also:
staticsetcookie(name:String, value:String = "", expire:Int = 0, path:String = "", domain:String = "", secure:Bool = false, httponly:Bool = false):Bool
See 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):String
See also:
staticsin(arg:Float):Float
See 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):Bool
See also:
staticsocket_close(resource:Resource):Void
See also:
staticsocket_connect(stream:Resource, host:String, port:Int):Bool
See also:
staticsocket_create(domain:Int, type:Int, protocol:Int):Resource
See also:
staticsocket_export_stream(resource:Resource):EitherType<Bool, Resource>
See also:
staticsocket_getpeername(stream:Resource, host:Ref<String>, port:Ref<Int>):Bool
See also:
staticsocket_getsockname(stream:Resource, host:Ref<String>, port:Ref<Int>):Bool
See also:
staticsocket_import_stream(resource:Resource):EitherType<Bool, Resource>
See also:
staticsocket_listen(stream:Resource, connections:Int):Bool
See 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):Bool
See also:
staticsocket_set_nonblock(stream:Resource):Bool
See also:
staticsocket_set_option(stream:Resource, level:Int, option:Int, val:Any):Bool
See also:
staticsocket_shutdown(stream:Resource, rw:Int):Bool
See also:
staticsocket_write(resource:Resource, buffer:String, len:Int = 0):EitherType<Bool, Int>
See also:
staticspl_autoload(class_name:String, ?file_extensions:String):Void
See also:
staticspl_autoload_call(class_name:String):Void
See also:
staticspl_autoload_extensions(?file_extensions:String):String
See 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):Bool
See also:
staticspl_autoload_unregister(autoload_function:(className:String) ‑> Void):Bool
See also:
staticspl_object_hash(obj:{}):String
See also:
staticsprintf(format:String, args:Rest<Dynamic>):EitherType<String, Bool>
See also:
staticsqlite_error_string(error_code:Int):String
See also:
staticsqlite_escape_string(item:String):String
See also:
staticsqrt(arg:Float):Float
See also:
staticstat(filename:String):EitherType<NativeArray, Bool>
See also:
staticstr_pad(input:String, pad_length:Int, pad_String:String = " ", ?pad_type:Int):String
See also:
staticstr_repeat(input:String, multiplier:Int):String
See 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):Int
See also:
staticstrcmp(str1:String, str2:String):Int
See 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):Bool
See also:
staticstream_set_blocking(stream:Resource, mode:Bool):Bool
See also:
staticstream_set_timeout(stream:Resource, seconds:Int, microseconds:Int = 0):Bool
See 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):Bool
See also:
staticstrftime(format:String, ?timestamp:Int):EitherType<String, Bool>
See also:
staticstrlen(string:String):Int
See also:
staticstrncasecmp(str1:String, str2:String, len:Int):Int
See 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):String
See also:
staticstrtotime(time:String, ?now:Int):EitherType<Int, Bool>
See also:
staticstrtoupper(string:String):String
See also:
staticstrtr(str:String, from:String, to:String):String
staticstrtr(str:String, from:NativeAssocArray<String>):String
See also:
staticstrval(value:Dynamic):String
See also:
staticsubstr(string:String, start:Int, ?length:Int):EitherType<Bool, String>
See also:
staticsubstr_count(haystack:String, needle:String, ?offset:Int, ?length:Int):Int
See 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):Float
See also:
statictime():Int
See also:
statictrim(str:String, ?character_mask:String):String
See also:
staticucwords(str:String, ?delimiters:String):String
See also:
staticunlink(filename:String, ?context:Resource):Bool
See also:
staticunpack(format:String, data:String):NativeArray
See also:
staticunserialize(str:String, ?options:NativeArray):Dynamic
See also:
staticunset(value:Dynamic, values:Rest<Dynamic>):Void
See also:
staticurldecode(str:String):String
See also:
staticurlencode(str:String):String
See also:
staticusleep(micro_seconds:Int):Void
See also:
staticusort(array:Ref<NativeArray>, value_compare_func:(Dynamic, Dynamic) ‑> Int):Bool
See also:
staticutf8_decode(data:String):String
See also:
staticutf8_encode(data:String):String
See also:
staticvar_dump(args:Rest<Dynamic>):Void
See also:
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/php/Global.html