|
Posted by sk on 10/06/06 22:17
Seems like you are only one who had problem understanding only logical
'can't get this to work'. However, No new-line!
Colin Fine wrote:
> sk wrote:
>
>> According to zend.com
>>
>> Double and single quoted strings are handled differently by PHP.
>> Double quoted strings are interpreted while single quoted strings are
>> treated exactly as written. For example:
>>
>> $foo = 2;
>> echo "foo is $foo"; // this prints: foo is 2
>> echo 'foo is $foo'; // this prints: foo is $foo
>> echo "foo is $foo\n"; // this prints: foo is 2 (with a new-line)
>> echo 'foo is $foo\n'; // this prints: foo is $foo\n
>>
>> I can not get this to work.
>>
>
> And we're all supposed to guess in what way it doesn't work?
>
> I'm sorry if this sounds crabby, sk, but it is a bugbear of mine at work
> as well as here.
>
> 'I can't get this to work' is as much use as 'My car won't go'.
>
> PLEASE, if you ask for assistance, give people the information they need
> to render assistance: tell them
> - what you did
> - what happened (including what you saw)
> - what system/context you were in
> - what you expected, if it is not obvious.
>
> </lecture>
>
> Colin
[Back to original message]
|