Variable names and SESSION names?

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>
Hi Gang:

It was reported to me that PHP has problems occasionally with variable names being the same as SESSION variable names — is that true?

For example, could the following present a problem:

$color = “red”;
$_SESSION[‘color’] = $color;

I had that happen well over a decade ago, but nothing recent. How about you guys?

Thanks,

Tedd

Tedd Sperling
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.