php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9415 post variables are case sensitiv
Submitted: 2001-02-22 20:19 UTC Modified: 2001-02-22 20:25 UTC
From: bugs at sels dot com Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugs at sels dot com
New email:
PHP Version: OS:

 

 [2001-02-22 20:19 UTC] bugs at sels dot com
as far as I know php is not case sensitive. if I wan?t to access post vars it is.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-22 20:25 UTC] torben@php.net
The very first line of the Variables section of the manual:

  Variables in PHP are represented by a dollar sign followed by the name of the 
  variable. The variable name is case-sensitive. 

It is at: http://www.php.net/manual/en/language.variables.php

A quick test can often help you figure these types of things out:

<?php
$bob['fred'] = 'One';
$bob['Fred'] = 'Two';
echo $bob['fred'] . "\n" . $bob['Fred'];
?>


Hope this helps,

Torben
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 08:01:27 2025 UTC