Yohanne Posted April 16, 2014 Share Posted April 16, 2014 Hi coders, how to correct syntax with two variable name in just one for loop count? for($i = 0;$i<count($q,$x); $i++ ) Link to comment https://forums.phpfreaks.com/topic/287798-correct-syntax-for-for-loop-count-two-variable/ Share on other sites More sharing options...
requinix Posted April 16, 2014 Share Posted April 16, 2014 I don't know what you're trying to do with $q and $x, but if you want to deal with their counts and not let $i get above either, $i Link to comment https://forums.phpfreaks.com/topic/287798-correct-syntax-for-for-loop-count-two-variable/#findComment-1476289 Share on other sites More sharing options...
Yohanne Posted April 16, 2014 Author Share Posted April 16, 2014 Thanks, and woww it works.. Link to comment https://forums.phpfreaks.com/topic/287798-correct-syntax-for-for-loop-count-two-variable/#findComment-1476293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.