Answers for "php extract"

PHP
1

php extract array

extract($array);
Posted by: Guest on October-20-2020
0

php extract

<?php

$a = "Original";

$my_array = array("a" => "Cat","b" => "Dog", "c" => "Horse");

extract($my_array);

echo "\$a = $a; \$b = $b; \$c = $c";

?>
Posted by: Guest on August-31-2021
0

extract in php

$arr = array('mango'=>'My favourite fruit','apple'=>'It is good for health','banana'=>'it is good for bones'); 

// it will convert array to variable 

extract($arr); 

echo $mango."</br>"; 

echo $apple."</br>"; 

echo $banana;
Posted by: Guest on September-29-2021

Browse Popular Code Answers by Language