Instruction
- if
- for
- foreach
- return
- init_variable
- set_variable
- set_array_value
- set_object_property
- get_array_value
- get_object_property
Variable
- int
- float
- string
- array
- boolean
Logical
- and
TRUE if both item1 and item2 are TRUE.
- or
TRUE if either item1 or item2 is TRUE.
- not
TRUE if item1 is not TRUE.
Comparision
-
equals
- not equals
- greater than
- greater than or equal to
- less than
- less than or equal to
Arithmetic
- addition
Sum of item1 and item2 ( a + b)
- substraction
Difference of item1 and item2 ( a – b)
- multiplication
Product of item1 and item2 ( a * b )
- division
Quotient of item1 and item2 ( a / b )
- modulo
Remainder of item1 divided by item2 ( a % b )
- exponentiation
Result of raising item1 to the item2\’th power ( a ** b )
Cast
Try to cast object from a type to another.
- to int
- to string
- to float
- to array
- to object
Global
- post
Variables passed to the current script via the HTTP POST method.
- get
Variables passed to the current script via the URL parameters.
- server
Containing information such as headers, paths, and script locations.
- files
An array of items uploaded to the current script via the HTTP POST method.
- session
An array containing session variables available to the current script.
- cookie
An array of variables passed to the current script via HTTP Cookies.
WordPress
Most of WordPress functions and hooks definitions are available in Flopress.
See https://developer.wordpress.org/ for a complete list of definitions.