Search code examples
phpcase-sensitivecase-insensitive

Is case sensitivity dependent on config?


I'm working on a php framework, and I just realized, that case sensitivity will be a big problem. For example: the http headers are case insensitive, but the queryString keys are case sensitive in $_GET.

Is that behavior config / http server etc.. dependent, are the queryString keys always case sensitive?

Btw. are the SQL table names and columns key sensitive or insensitive?

(I want to reach every property in camelCase... :-) )


Solution

  • GET params keys should always be supplied lowercase.

    SQL table names are case sensitive if the platform's file system is case sensitive.

    Info on MySQL's case.