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? 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/83972-solved-opp-case-sensitivity/#findComment-427313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.