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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 + 46 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC