Closed alex-arhat closed 13 years ago
Hey Lazyal could you explain what's the purpose of Iterator there? Thanks
Sorry, did not see your patch earlier
I think we didn't pull this request, right? Can you explain me how this works and for what it is useful, I'm very interested in it! Thanks
//loop code $compiled_code .= "<?php $counter=-1; if( isset($var) && ($var instanceof Iterator || is_array($var) && sizeof($var)) ) foreach( $var as $key => $value ){ $counter++; ?>";
add support Iterator interface for foreach