[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search
In article <2ed18c3958.Alan.Adams@xxxxxxxxxxxxxxxxxxxxxx>, Alan Adams
<alan@xxxxxxxxxxxxxxxx> wrote:
> In message <583987c313Lists@xxxxxxxxxxx> "Richard Torrens (lists)"
> <Lists@xxxxxxxxxxx> wrote:
> <snip>
[Snip]
> <snip>
> Quoting things is one of those areas where every language and tool
> seems to have its own rules. I particularly like PHP's version, where
> " and ' are almost interchangeable.
> So "'" outputs a single quote, while '"' outputs a double quote.
As does "\"" which is similar to SEd Adv S&R.
> They aren't quite identical in operation - variables get expanded
> inside double quotes, not inside single ones.
As someone originally weaned on BBC Basic, such things take some getting
used to but make perfect sense.
print("Total £$pounds-$pence");