NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
datatovars Code template


Joined: 10 Sep 2013
Posts: 9
Reply with quote
PhpEd has this code template, named datatovars:

Code:
while(list($var, $val)=each($row)) {
  $$var=$val;
}


Correct me if I'm wrong, but isn't it the same as
Code:
extract($row)
?
View user's profileFind all posts by ruslanbesSend private message


Joined: 26 Sep 2007
Posts: 25
Reply with quote
I believe you're right! But, why let C do it when you can do it in userland (while assigning two more variables? Smile
View user's profileFind all posts by PureFormSend private message
datatovars Code template
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic