Page 1 of 1

. syntax .

Posted: Tue May 09, 2006 12:04 pm
by Anglophobe
Okay, I know this is probably really basic, but there's really no good way to search for it...it should only need a simple answer:

In help, tutorials, the PHP manual (which I don't have time to read cover-to-cover), I keep seeing things like:

Code: Select all

<?php
$a = array(2, 4, 6, 8);
echo "sum(a) = " . array_sum($a) . "\n";

$b = array("a" => 1.2, "b" => 2.3, "c" => 3.4);
echo "sum(b) = " . array_sum($b) . "\n";
?>
What in the world does putting things in . . do? Is it an alternative to something else? Where can I find it in documentation? Thanks?

Re: . syntax .

Posted: Tue May 09, 2006 12:08 pm
by ambivalent
Anglophobe wrote:
What in the world does putting things in . . do? Is it an alternative to something else? Where can I find it in documentation? Thanks?
Concatenation

Posted: Tue May 09, 2006 12:11 pm
by Anglophobe
Wow, I think that just opened up a whole new world before my very eyes!

Thank you so much!