2009/11/4 Nathan Rixham :
> Nick Cooper wrote:
>>
>> Hi,
>>
>> I was just wondering what the difference/advantage of these two
>> methods of writing a string are:
>>
>> 1) $string = "foo{$bar}";
>>
>> 2) $string = 'foo'.$bar;
>
> 1) breaks PHPUnit when used in classes (need to bug report that)
> 2)
Nick Cooper wrote:
Hi,
I was just wondering what the difference/advantage of these two
methods of writing a string are:
1) $string = "foo{$bar}";
2) $string = 'foo'.$bar;
1) breaks PHPUnit when used in classes (need to bug report that)
2) [concatenation] is faster (but you wouldn't notice)
2 matches
Mail list logo