+ 6
PHP - Variables vs Constants - Case Sensitivity
I have been looking through the PHP lessons and understand that Variables are always case-senstive whereas Constants can be either case-sensitive or case-insensitive. Having no previous background in PHP this seems strange to have the option on one but not the other. Does anyone know why this is? Also why would you want to use case-insensitive?
5 Answers
+ 28
It's more convenient and object-oriented.
+ 27
I just use "const". Never used define() function.
+ 5
Is there a reason for that Igor?
0
I used Ï as constant in define( )function it's getting an error
0
Men shunchaki "const" dan foydalanaman. Define () funktsiyasi hech qachon ishlatilmagan.