temujinleal Posted January 1, 2008 Share Posted January 1, 2008 Good day!! I would like to ask if I have a class, then if my functions have the same name but their spelling has different cases, are they the same when functions are called? Quote Link to comment https://forums.phpfreaks.com/topic/83972-solved-opp-case-sensitivity/ Share on other sites More sharing options...
revraz Posted January 1, 2008 Share Posted January 1, 2008 Functions are not case sensitive like variables. Quote Link to comment https://forums.phpfreaks.com/topic/83972-solved-opp-case-sensitivity/#findComment-427304 Share on other sites More sharing options...
temujinleal Posted January 1, 2008 Author Share Posted January 1, 2008 sir does it mean that if i have a function named SampLe and another is sample, it is just the same? Quote Link to comment https://forums.phpfreaks.com/topic/83972-solved-opp-case-sensitivity/#findComment-427311 Share on other sites More sharing options...
toplay Posted January 1, 2008 Share Posted January 1, 2008 sir does it mean that if i have a function named SampLe and another is sample, it is just the same? Yes. It's in the manual: Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration. Quote Link to comment https://forums.phpfreaks.com/topic/83972-solved-opp-case-sensitivity/#findComment-427313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.