Jump to content

*SOLVED* case sensitivity?


Guest askjames01

Recommended Posts

Guest askjames01
Just to review my memory...

[code]
function readdb() {

}

// and also

readDB();
[/code]

are these function the same or not?

thanxs n advance.
Link to comment
Share on other sites

[!--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]
Link to comment
Share on other sites

Guest askjames01
thank you very much for your help [b]toplay[/b]
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?
Link to comment
Share on other sites

Yes functions in PHP are case insensitive, the following is taken from php.net:
[quote][b]Note: [/b] Function names are case-[b]in[/b]sensitive, though it is usually good form to call functions as they appear in their declaration.[/quote]

heres an example:
[code]<?php

function test()
{
    echo "works";
}

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

?>[/code]All four functions are the same!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.