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.

Static methods

staticinlinedump(v:Dynamic):Void

Displays 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):Bool

Find out whether an extension is loaded.

staticgetClasses():Dynamic

Tries to load all compiled php files and returns list of types.

staticinlineisCli():Bool

staticloadLib(pathToLib:String):Void

Loads types defined in the specified directory.

staticinlinemail(to:String, subject:String, message:String, ?additionalHeaders:String, ?additionalParameters:String):Bool

See the documentation for the equivalent PHP function for details on usage: http://php.net/manual/en/function.mail.php

staticinlineprint(v:Dynamic):Void

Print the specified value on the default output.

staticinlineprintFile(file:String):Int

Output file content from the given file name.

staticprintln(v:Dynamic):Void

Print the specified value on the default output followed by a newline character.

staticinlinerethrow(e:Dynamic):Void

Rethrows 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):String

Serialize using native PHP serialization. This will return a binary String that can be stored for long term usage.

staticinlineunserialize(s:String):Dynamic

Unserialize a String using native PHP serialization. See php.Lib.serialize().