api global variables are a class to get and use some special functions
api properties (variables):
- r: (object) used to access GET, POST data. Includes methods (functions):
- getMethod(): Returns the name of the current data transfer method
- getVar(key, default = null): Returns (string) the GET value named key.
- postVar(key, default = null): Returns (string) the POST value named key.
- issetGet(key): Checks the existence of a value passed to key via the GET method. If exists then this function returns: 1.
- issetPost(key): Checks the existence of a value passed to key via the POST method. If exists then this function returns: 1.
- getIp(): Returns the IP of the currently accessing user
- getUserAgent(): Returns browser information of the currently accessing user