How to concatenate strings in php?

Hello, this string is not working for me:

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

Does anyone have any suggestions?
FairyBusinessAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sjklein42Connect With a Mentor Commented:
The bug is in the for statement.  You have a comma instead of a semi-colon after the $i=0.

0
 
FairyBusinessAuthor Commented:
Thanks! Maybe you can help me with my next question.
0
 
sjklein42Commented:
Post it as a "related question" (or link to it here) and I'll take a look.  Thanks.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
FairyBusinessAuthor Commented:
Ok, nevermind I got it. Another silly mistake!
0
 
sjklein42Commented:
no prob.
0
All Courses

From novice to tech pro — start learning today.