Re: Comma question

From: Date: Mon, 22 Jul 2002 23:44:02 +0000
Subject: Re: Comma question
Groups: php.general 
Request: Send a blank email to php-general+get-108983@lists.php.net to get a copy of this message
>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 ); The {} makes it *VERY* clear to PHP that $strName is a variable to be "interpolated" into the string. This Programmer has actually read the Documentation and believed the warnings that some day just plain old $strName might not be enough. The , simply gives more arguments to the echo construct. You can echo as many things as you want, and they just get sent out one after the other. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#108983) next »