Friday, April 20, 2012

How can I call a class with variables from array php?

I would like something like this but dynamically from an array like this:



$array = array("first","second","third");


So class would be called like this:



$class = new class("first","second","third");




No comments:

Post a Comment