Jump to content

*SOLVED* case sensitivity?


Guest askjames01

Recommended Posts

[!--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
https://forums.phpfreaks.com/topic/8685-solved-case-sensitivity/#findComment-31883
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
https://forums.phpfreaks.com/topic/8685-solved-case-sensitivity/#findComment-31888
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
https://forums.phpfreaks.com/topic/8685-solved-case-sensitivity/#findComment-31957
Share on other sites

Archived

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

×
×
  • 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.