Yeah, single quotes prevent vriable substitution for:
print('My name is $name');
but not:
print("My name is '$name'");
The second one would print the value of the variable $name inside single
quotes. Try it! =)
- Isaac
On Sun, 30 Jan 2000, Chris Griffin wrote:
>
> I believe that single quotes prevents the substitution of variables. See
> string types in the PHP manual.
>
> > From: Isaac Reuben <[EMAIL PROTECTED]>
> > Reply-To: "FreeTrade" <[EMAIL PROTECTED]>
> > Date: Sun, 30 Jan 2000 15:56:12 -0800 (PST)
> > To: [EMAIL PROTECTED]
> > Subject: [FreeTrade] Single vs. Double quotes
> >
> > Anybody have a serious preference for using double quotes over single quotes
> > for tag attributes? I like single so you can do things like this:
> >
> > print("<INPUT TYPE='hidden' NAME='ACTION' VALUE='$action'>\n");
> >
> > instead of:
> >
> > print("<INPUT TYPE=\"hidden\" NAME=\"ACTION\" VALUE=\"$action\">\n");
> >
> > Single and double are both ok according to w3, but I noticed that double
> > quotes seem to be used everywhere in FreeTrade.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]