package php
Available on phpPlatform-specific PHP Library. Provides some platform-specific functions for the PHP target, such as conversion from Haxe types to native types and vice-versa.
static associativeArrayOfHash (hash:StringMap<Dynamic>):NativeArraystatic associativeArrayOfObject (ob:Dynamic):NativeArraystatic dump (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.
static extensionLoaded (name:String):UnknownFind out whether an extension is loaded.
static getClasses ():{}static hashOfAssociativeArray<T> (arr:NativeArray):Map<String, T>static isCli ():Boolstatic loadLib (pathToLib:String):VoidLoads types defined in the specified directory.
static mail (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
Parameters:
to |
|
|---|---|
subject |
|
message |
|
?additionalHeaders |
|
null |
?additionalParameters |
static objectOfAssociativeArray (arr:NativeArray):Dynamicstatic print (v:Dynamic):VoidPrint the specified value on the default output.
static printFile (file:String):UnknownOutput file content from the given file name.
static println (v:Dynamic):VoidPrint the specified value on the default output followed by a newline character.
static rethrow (e:Dynamic):VoidFor neko compatibility only.
static serialize (v:Dynamic):StringSerialize using native PHP serialization. This will return a binary String that can be stored for long term usage.
static inline toHaxeArray (a:NativeArray):Array<Dynamic>static toPhpArray (a:Array<Dynamic>):NativeArraystatic unserialize (s:String):DynamicUnserialize a String using native PHP serialization. See php.Lib.serialize().
© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/php/Lib.html