PHP Emulation

The CYWare JS library supports some PHP methods to provide backward compatability for pre-exsiting PHP applications. These are convenience functions to assist in porting to our platform.

Function Description
echo Prints a string. Unlike PHP, the CYWare JS API requires echo parameters to be enclosed in parenthesis.
floor Removes the decimal portion of a number.
get_cfg_var Retrieves a INI setting. The INI file is located in /etc/php/7.1/apache2/conf.d/20-cyphpext.ini
intval Converts a string value to an integer.
time Returns the number of seconds since January 1, 1970.