2081 11

Web Technology II20815 marksConversion between arrays and variables

How conversion between arrays and variables is done using extract() and compact() functions?

How conversion between arrays and variables is done using extract() and compact() functions? [5]

--- The extract() function converts an associative array into individual variables. Each key of the array becomes a variable name, and the corresponding value becomes the variable's value. How it works: - Key "name" → variable $name = "Ram" - Key "age" → variable $age = 21 - Key "city" → variable...

Up nextWhat is exploding and imploding of strings? Illustrate with an example.