in reply to Is this an efficient way check for certain conditions?
But, i usually suggest shying away from that unless absolutly needed, because it can get terribly difficult to maintain. But, when it is needed, it is a good tool$number = 1; $code = "foo_".$number; &{$code}();
|
|---|