Gurzi Posted April 6, 2008 Share Posted April 6, 2008 You could just as easily use explode to place the variables into local scope. but you they initialize the vars ? where they make something like this $name = $array['name']; ? explode returns an array :s Link to comment https://forums.phpfreaks.com/topic/75386-fully-understanding-mvc-concept/page/2/#findComment-510650 Share on other sites More sharing options...
redbullmarky Posted April 6, 2008 Share Posted April 6, 2008 i think thorpe meant 'extract() which takes an associative array and creates variables of same name as key in the local scope. <?php $myarray = array( 'dog' => 'woof', 'cat' => 'miaw' ); extract($myarray); echo $dog; // outputs 'woof' echo $cat; // outputs 'miaw' ?> Link to comment https://forums.phpfreaks.com/topic/75386-fully-understanding-mvc-concept/page/2/#findComment-510658 Share on other sites More sharing options...
Gurzi Posted April 6, 2008 Share Posted April 6, 2008 ah ok! nice very cute thanks a lot :) Link to comment https://forums.phpfreaks.com/topic/75386-fully-understanding-mvc-concept/page/2/#findComment-510659 Share on other sites More sharing options...
trq Posted April 6, 2008 Share Posted April 6, 2008 Sorry, indeed I did meen extract. Having a hard time posting between actual work tonight Link to comment https://forums.phpfreaks.com/topic/75386-fully-understanding-mvc-concept/page/2/#findComment-510675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.