Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest askjames01

*SOLVED* case sensitivity?

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.

Share this post


Link to post
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]

Share this post


Link to post
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?

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites
Guest askjames01
you save me again from the jungle world of PHP [b]wildteen[/b].
Thank you!

Share this post


Link to post
Share on other sites

×

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.