Jump to content

Noob Question: When to use "." and ","


ev5unleash

Recommended Posts

Hey guys,

 

I'm new to PHP and I'm currently teaching myself. I'm looking over some code and I'm confused when to use "." inside of code. Can someone please explain to me?

 

Here's some example code I read from a book:

<?php
$counter = 1;
while ($counter <= 12) {
      echo $counter." times 2 is ".($counter * 2). "<br />"
      $counter++;
}
?>

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/218676-noob-question-when-to-use-and/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.