php extract array
extract($array);
php extract
<?php
$a = "Original";
$my_array = array("a" => "Cat","b" => "Dog", "c" => "Horse");
extract($my_array);
echo "\$a = $a; \$b = $b; \$c = $c";
?>
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;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us