<?php $arraylist = array("/abc/"=>"myfunction"); function myfunction(){ echo "Whatnow"; } foreach($arraylist as $key=>$value){ if(preg_match($key, "abc")){ $func = $value; $func(); } }
You have javascript disabled. You will not be able to edit any code.