. syntax .

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Anglophobe
Forum Newbie
Posts: 11
Joined: Tue May 09, 2006 11:50 am

. syntax .

Post 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?
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Re: . syntax .

Post 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
Anglophobe
Forum Newbie
Posts: 11
Joined: Tue May 09, 2006 11:50 am

Post by Anglophobe »

Wow, I think that just opened up a whole new world before my very eyes!

Thank you so much!
Post Reply