foreach() error when using php code array
-
I’m using some code and include a config file that holds an array.
I every time get an error on the following foreach() and I can’t get rid of it.
Am I using an not allowed WP-variable ?
function renderTLDList() { global $domainInfo; ?> <select name="tld" size="1"> <? foreach($domainInfo as $tld => $attribs) { print "<option value=\"".$tld."\""; if($_POST['tld'] == $tld) print " selected"; print ">".$tld."</option>\n"; } ?> </select> <? }Is there a reason for this specific error ?
The topic ‘foreach() error when using php code array’ is closed to new replies.