on 23/07/02 8:34 AM, B i g D o g ([EMAIL PROTECTED]) wrote:

> What does the "," and "{}" do in this type of statement?
> Example:  echo "<tr><td>{$strName}</td></tr>", htmlspecialchars( $teststr );

Not sure about the comma, but the {braces} are easy.  They help separate the
$vars from other stuff in the string.


$string = " something ";
echo "This will$somethingprobably not work";
echo "This will{$something}probably not work";

It's a good habbit to get into, and has saved my arse on a few occasions,
although the above example isn't a good one.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to