📜  在 php 代码示例中提取

📅  最后修改于: 2022-03-11 14:53:45.149000             🧑  作者: Mango

代码示例3
$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."
"; echo $apple."
"; echo $banana;