Jump to content


*SOLVED* case sensitivity?


  • Please log in to reply
4 replies to this topic

#1 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 02:42 AM

Just to review my memory...

function readdb() {

}

// and also 

readDB();

are these function the same or not?

thanxs n advance.

#2 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 29 April 2006 - 04:26 AM

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.
[/quote]
From: [a href=\"http://us2.php.net/manual/en/language.functions.php#AEN5316\" target=\"_blank\"]http://us2.php.net/manual/en/language.functions.php#AEN5316[/a]

#3 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 05:19 AM

thank you very much for your help toplay
but my question is very easy to answer and i think i don't need to read the manual again..
just to refresh my memory...

if the readdb(); or readDB();

uppercase and lowercase are the same...
or is there a case sensitivity?

the answer must be either YES or NO?

well? what was the rule again?

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 29 April 2006 - 02:34 PM

Yes functions in PHP are case insensitive, the following is taken from php.net:

Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.


heres an example:
<?php

function test()
{
    echo "works";
}

tesT();
TEST();
TeSt();
test();

?>
All four functions are the same!

#5 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 29 April 2006 - 06:03 PM

you save me again from the jungle world of PHP wildteen.
Thank you!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users