How to concatenate strings in php?

FairyBusiness used Ask the Experts™
Hello, this string is not working for me:

for ($i = 0, $i < 3; $i++)  {
      echo "<img src=\"" . $pictures[$i] . "\" />";

Does anyone have any suggestions?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The bug is in the for statement.  You have a comma instead of a semi-colon after the $i=0.


Thanks! Maybe you can help me with my next question.
Post it as a "related question" (or link to it here) and I'll take a look.  Thanks.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!


Ok, nevermind I got it. Another silly mistake!
no prob.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial