Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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; 
 
PREVIOUS NEXT
Tagged: #extract #php
ADD COMMENT
Topic
Name
9+4 =