I'll open up by saying that I don't know jack about PHP, however this looks veryy similar to other language hello world programs, so I'll take a stab at it. Someone will correct me if I'm wrong
Code: Select all
$foo = "Hello"
$bar = $foo . " world! <br />";
echo $bar; // Output: Hello world!
Quotes are used to literal something in this case, 'world! = world, and hello = hello, where variables are containers that are = to whatever is in them.
In this case foo is a container holding the string "hello", where bar is a container holding the container foo, and the string "world!" when you echo the container, no quotes are needed; inside the container is returned.
so I would think that:
or tell me these two strings, is the same as
or look in that container over there and tell me what you find
I could be wrong though