Re: using . to concatenate strings ?
| From: | Davey | Date: | Thu, 04 Dec 2003 09:27:19 +0000 |
| Subject: | Re: using . to concatenate strings ? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24125@lists.php.net to get a copy of this message | ||
Arnaud Limbourg wrote:
Hi all, i have a php question. What is the best way to go ? $str = 'text ' . $obj->myvar . ' extrat text'; or $str = "text {$obj->myvar} extrat text'; Does one have advantages over the other ?I actually use both in different circumstances. Whichever looks best. - Davey