Documentation

PHP documentation PHP String Functions PHP Math Functions Function definition format E.g. round() is defined as: : float is the return type of the function

Read More

Positive / negative

Get positive value abs() function returns the absolute value of its number argument Example returning the distance regardless of how the values are passed

Read More

Variable Functions

gettype() Returns a string value representing the data type of a variable var_dump() Prints details about the variable it is given

Read More

Functions using references/pointers

Defining a function argument as a pointer Use the ‘&’ character in frnt of the function argument definition. That’s it, there’s no other change needed, nothing is prepended to the variable when used or the function argument when called. Array references Works just the same as for variables.

Read More

Modulo

The modulo operator returns the remainder after the left operand is divided by the right operand. The modulo operator will convert its operands to integers before performing the operation, rounding down.

Read More