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++ ) Quote Link to comment https://forums.phpfreaks.com/topic/287798-correct-syntax-for-for-loop-count-two-variable/ Share on other sites More sharing options...
Solution requinix Posted April 16, 2014 Solution 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 Quote 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.. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.