{} forms
| From: | Tim Streater | Date: | Wed, 16 Nov 2011 13:56:00 +0000 |
| Subject: | {} forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315713@lists.php.net to get a copy of this message | ||
I'm looking at the source of a web sockets server and I see these various forms:
"ws://{$host}{$path}"
"HTTP/1.1 ${status}\r\n"
Are these simply equivalent to:
"ws://" . $host . $path
"HTTP/1.1 " . $status . "\r\n";
and if so, is there any particular benefit to using that form? Or if not, what do they mean?
(I've read up about variable variables).
Thanks,
--
Cheers -- Tim