Cast API Reference

This functions are used to change the type of variable into other one.

The variables has type, and you can check it by using the debugger, which Alinous-Core IDE provides.

If you want to cast a variable into String type, tale a look at the code below.

If you want to cast the double or integer variable into the string type variable, you can do it by adding string to the variable.

toNumber($arg0)

 Cast the variable into the Number type.The Number type means integer.

The argument, which is "$arg0", can be string type variable, but it has to be integer format.

toDouble($arg0)

 Cast the type of variable '$arg0' into Double.

The argument, which is "$arg0", can be string type variable, but it has to be integer format. And it also canbe integer type variable.

 


Go to Top