package php
Available on php
Platform-specific PHP Library. Provides some platform-specific functions for the PHP target, such as conversion from Haxe types to native types and vice-versa.
staticinlineassociativeArrayOfHash(hash:StringMap<Dynamic>):NativeArraystaticinlineassociativeArrayOfObject(ob:Dynamic):NativeArraystaticinlinedump(v:Dynamic):VoidDisplays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.
staticinlineextensionLoaded(name:String):BoolFind out whether an extension is loaded.
staticgetClasses():DynamicTries to load all compiled php files and returns list of types.
statichashOfAssociativeArray<T>(arr:NativeAssocArray<T>):Map<String, T>staticinlineisCli():BoolstaticloadLib(pathToLib:String):VoidLoads types defined in the specified directory.
staticinlinemail(to:String, subject:String, message:String, ?additionalHeaders:String, ?additionalParameters:String):BoolSee the documentation for the equivalent PHP function for details on usage: http://php.net/manual/en/function.mail.php
staticobjectOfAssociativeArray(arr:NativeArray):Dynamicstaticinlineprint(v:Dynamic):VoidPrint the specified value on the default output.
staticinlineprintFile(file:String):IntOutput file content from the given file name.
staticprintln(v:Dynamic):VoidPrint the specified value on the default output followed by a newline character.
staticinlinerethrow(e:Dynamic):VoidRethrows an exception. If e is not a value caught in try...catch or if called outside of catch block, then e is thrown as a new exception.
staticinlineserialize(v:Dynamic):StringSerialize using native PHP serialization. This will return a binary String that can be stored for long term usage.
staticinlinetoHaxeArray(a:NativeArray):Array<Dynamic>staticinlinetoPhpArray(a:Array<Dynamic>):NativeArraystaticinlineunserialize(s:String):DynamicUnserialize a String using native PHP serialization. See php.Lib.serialize().
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/php/Lib.html