COMMUNITY

Warning : untyped __call__ is deprecated. Use php.Syntax instead

How to call php function?

in example - how to rewrite this

untyped __call__('str_repeat', ' . ', level);

with php.Syntax ?

php.Syntax.code('str_repeat({0}, {1})', ' . ', level); 

Also str_repeat extern is available in php.Global.str_repeat:

1 Like

can i use in my own classes?


@:phpGlobal
extern class CustomPhpFunctions {

static function readfile(path:String):Void;

}

Yes, you can.

2 Likes