Jump to content

Extension:PhpTags Functions/Functions/Variable handling

From mediawiki.org

List of implemented functions

[edit]
  • boolval β€” Get the boolean value of a variable
  • doubleval β€” Alias of floatval
  • floatval β€” Get float value of a variable
  • get_defined_vars β€” Returns an array of all defined variables
  • gettype β€” Get the type of a variable
  • intval β€” Get the integer value of a variable
  • is_array β€” Finds whether a variable is an array
  • is_bool β€” Finds out whether a variable is a boolean
  • is_double β€” Alias of is_float
  • is_float β€” Finds whether the type of a variable is float
  • is_int β€” Find whether the type of a variable is integer
  • is_integer β€” Alias of is_int
  • is_long β€” Alias of is_int
  • is_null β€” Finds whether a variable is NULL
  • is_numeric β€” Finds whether a variable is a number or a numeric string
  • is_object β€” Finds whether a variable is an object
  • is_real β€” Alias of is_float
  • is_scalar β€” Finds whether a variable is a scalar
  • is_string β€” Find whether the type of a variable is string
  • print_r β€” Prints human-readable information about a variable
  • settype β€” Set the type of a variable
  • strval β€” Get string value of a variable
  • var_dump β€” Dumps information about a variable
  • var_export β€” Outputs or returns a parsable string representation of a variable

The following functions are implemented in the Runtime of the extension PhpTags.

  • empty β€” Determine whether a variable is empty
  • isset β€” Determine if a variable is set and is not NULL
  • unset β€” Unset a given variable

Waiting for implementation

[edit]

This function will be added after the implementation of the callback function in Runtime of Extension PhpTags.

  • is_callable β€” Verify that the contents of a variable can be called as a function

This functions can be added by request

  • debug_zval_dump β€” Dumps a string representation of an internal zend value to output
  • import_request_variables β€” Import GET/POST/Cookie variables into the global scope
  • serialize β€” Generates a storable representation of a value
  • unserialize β€” Creates a PHP value from a stored representation

Cannot be implemented

[edit]

This functions are used the resources