Curly braces {} are sometimes required for PHP to properly parse variables
within quoted strings.  Good example might be defining variable-variables
within a quoted string  "${$myvarvar}".  However I do not believe that curly
braces are required in this particular string.

As for the comma I believe it does the same thing as the period.  It will
concatonate the quoted string with the output of the htmlspecialchars()
function within the echo statement.


----- Original Message -----
From: "B i g D o g" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 4:34 PM
Subject: [PHP] Comma question

> Tried to check the archive, but it is offline...
> What does the "," and "{}" do in this type of statement?
> Example:  echo "<tr><td>{$strName}</td></tr>", htmlspecialchars(
$teststr );
> Thanks,
> .: B i g D o g :.
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to