extract

It import variables into the current symbol table from an array

Example

<?php
$array = array(“lan”=>”php”, “server”=> “Apache”, “browser”=> “Chrome”);
extract($array);
echo $lan.”<br >”;
echo $server.”<br >”;
echo $browser.”<br >”;
?>

Output

php
Apache
Chrome

Share