Re: single vs. double quotes inside a $_POST{}

On Sun, 17 May 2009 22:21:24 -0400, Jerry Stuckle
<jstucklex@xxxxxxxxxxxxx> wrote:

Daniel wrote:
On Sun, 17 May 2009 21:35:40 -0400, Jerry Stuckle
<jstucklex@xxxxxxxxxxxxx> wrote:

Daniel wrote:
On Sat, 16 May 2009 17:20:33 GMT, jdoerr <jdoerr@xxxxxxxxxxx> wrote:

What's preferred (or better)?
I understand the difference, re: variables (which explains why
$_POST['$tmp'] doesn't work), and I appreciate the corrections on my
prior use of $_POST[name].


I don't believe it makes any difference...

It does make a difference. That's why there are two different syntaxes.

it does if you need to embed variables in them. But in cases like the
one above, you rarely need to do so... And since the example was
mentinoed with constants, that's it, they kinda work the same...


The key here being 'kinda'. Try embedding a '$' in a double quoted
string, for instance, i.e. "They paid $millions for it."

You're absolutely right; but who would put a html input field with
dollars in it? Cause that was about it - $_POST['name'] vs the one wth
double quotes...