Variable Names
| From: | Chuck Daubenspeck | Date: | Sat, 15 Jan 2000 15:11:13 +0000 |
| Subject: | Variable Names | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14650@lists.php.net to get a copy of this message | ||
Can anyone explain why the following:
print "Success: $success<br>";
print "avs-code: $avs-code<br>";
print "auth-code: $auth-code<br>";
print "auth-msg: $auth-msg<br>";
would return:
Success: no
avs-code: -code
auth-code: -code
auth-msg: -msg
It would appear that PHP is attempting to do some mathimatical operation
due
to the hyphens in the variable name. What are the legal variable names
in PHP?
I have no control over the variable names being posted to my script,
so would
there be another way of accessing them (tried getvar, HTTP_POST_VARS,
etc)??
Thanks