escapeshellarg in PHP

Syntax of escapeshellarg in PHP string escapeshellarg(string argument) Properly escapes argument so it can be used as a safe argument to a shell function. When directly passing user input (such as from forms) to a shell command, you should use this function to escape the data to ensure that the argument isn’t a security risk.

error_reporting in PHP

Syntax of error_reporting in PHP int error_reporting([int level]) Sets the level of errors reported by PHP to level and returns the current level; if level is omitted, the current level of error reporting is returned. The following values are available for the function: E_ERROR Fatal runtime errors (script execution halts)E_WARNING Runtime warningsE_PARSE Compile-time parse errorsE_NOTICE … Read more

error_get_last in PHP

Syntax of error_get_last in PHP array error_get_last() Returns an associative array of information about the most recent error that occurred, or NULL if no errors have yet occurred while processing the current script. The following values are included in the array: type The type of errormessage Printable version of the errorfile The full path to … Read more

echo in PHP

Syntax of echo in PHP void echo string string[, string string2[, string stringN …] Outputs the given strings. echo is a language construct, and enclosing the parameters in parentheses is optional, unless multiple parameters are given—in this case, you cannot use parentheses. Example of echo

each in PHP

Syntax of each in PHP array each(array &array) Creates an array containing the keys and values of the element currently pointed at by the array’s internal pointer. The array contains four elements: elements with the keys 0 and key from the element containing the key of the element, and elements with the keys 1 and … Read more