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 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 Share on other sites More sharing options...
RON_ron Posted December 1, 2011 Author Share Posted December 1, 2011 Thanks! Quote Link to comment 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.