Jump to content

php constants question(s)


BrainPill

Recommended Posts

 

what are case insensitive CONSTANTS ? I understand what case insensitive is, but not what or when a constant is used.

 

my questions are: 

can programmers cast their own constants? if so: how?

Does PHP have built-in constants ?

where can I find a survey of php built in constants online?

Link to comment
Share on other sites

I'm not sure where you heard about this. If I had some context I could understand your question better. Most likely it means that PHP constant names are case insensitive meaning that "constant" and "CONSTANT" point to the same place.

You can create your own constants using the define() function.

PHP has thousands of built in constants, you will have to search the manual on php.net. Here are a few of them:

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...