Tag: PHP
zval container & symbol table
zval container: all php variables’ value is store in the zval container, which also includes is_ref (boolean value, and default is false, this is indicated whether the variable point to this value is reference variable or not) and refcount (contains how many variables point to this value) symbol table: all variable name in different scope
function: extract()
Syntax extract ( array &$array [, int $flags = EXTR_OVERWRITE [, string $prefix = NULL ]] ) Description extract — Import variables into the current symbol table from an array, Checks each key to see whether it has a valid variable name. It also checks for collisions with existing variables in the symbol table. Code
function: shortcode_atts
Syntax shortcode_atts(array $pair, array $atts, string $shortcode = ”) Description The pairs should be considered to be all of the attributes which are supported by the caller and given as a list. The returned attributes will only contain the attributes in the $pairs list. If the $atts list has unsupported attributes, then they will be