RON_ron Posted December 1, 2011 Share Posted December 1, 2011 How do I echo girl1, girl2, girl3, girl4, ...., girl9? Here's my code: $meeys = "girl"; for ($matchWcounter = 1; $matchWcounter <= 9; $matchWcounter ++) { echo $meeys[$matchWcounter]; } Quote Link to comment https://forums.phpfreaks.com/topic/252183-varcontinuesnum/ Share on other sites More sharing options...
scootstah Posted December 1, 2011 Share Posted December 1, 2011 Almost! Change echo $meeys[$matchWcounter]; To echo $meeys . $matchWcounter; Quote Link to comment https://forums.phpfreaks.com/topic/252183-varcontinuesnum/#findComment-1292909 Share on other sites More sharing options...
RON_ron Posted December 1, 2011 Author Share Posted December 1, 2011 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/252183-varcontinuesnum/#findComment-1292911 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.