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

@:has_untypedstaticdump (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.

@:has_untypedstaticextensionLoaded (name:String):Unknown

Find out whether an extension is loaded.

@:has_untypedstaticgetClasses ():{}

@:has_untypedstatichashOfAssociativeArray<T> (arr:NativeArray):Map<String, T>

@:has_untypedstaticisCli ():Bool

@:has_untypedstaticloadLib (pathToLib:String):Void

Loads types defined in the specified directory.

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

See the documentation for the equivalent PHP function for details on usage:




@:has_untypedstaticprint (v:Dynamic):Void

Print the specified value on the default output.

@:has_untypedstaticprintFile (file:String):Unknown

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.

@:has_untypedstaticrethrow (e:Dynamic):Void

For neko compatibility only.

@:has_untypedstaticserialize (v:Dynamic):String

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

@:has_untypedstaticinlinetoHaxeArray (a:NativeArray):Array<Dynamic>

@:has_untypedstatictoPhpArray (a:Array<Dynamic>):NativeArray

@:has_untypedstaticunserialize (s:String):Dynamic

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