define a constant.

define a constant.

How do you define a constant?

View Answers

December 27, 2010 at 2:58 PM

Hi,

With the help of define() directive, you can create constant in php. And here is how:

<?php 
define('NAME', 'Bharat'); 
?>

Thanks.

Ads









Related Tutorials/Questions & Answers:
define a constant.
define a constant.  How do you define a constant?   Hi, With the help of define() directive, you can create constant in php. And here is how: <?php define('NAME', 'Bharat'); ?> Thanks
How to define a constant variable in Java?
How to define a constant variable in Java?   Hi, How to define a constant variable in Java? thanks   HI, The Constants variables are declared using the final keyword. The values of the constant can't be changed
Advertisements
Define HibernateTemplate?
Define HibernateTemplate?  Hi, Define HibernateTemplate? Thanks
Define please!?!
Define please!?!  What is tree map sort
Define hiberanate
Define hiberanate  What is Hibernate?   Hibernate is a pure java ORM (object-relational mapping) and persistence framework that allows you to map POJO (Plain Old Java Obiect) to relational database tablea using(XML
ModuleNotFoundError: No module named 'constant'
ModuleNotFoundError: No module named 'constant'  Hi, My Python... 'constant' How to remove the ModuleNotFoundError: No module named 'constant... to install padas library. You can install constant python with following
ModuleNotFoundError: No module named 'constant'
ModuleNotFoundError: No module named 'constant'  Hi, My Python... 'constant' How to remove the ModuleNotFoundError: No module named 'constant... to install padas library. You can install constant python with following
ModuleNotFoundError: No module named 'constant'
ModuleNotFoundError: No module named 'constant'  Hi, My Python... 'constant' How to remove the ModuleNotFoundError: No module named 'constant... to install padas library. You can install constant python with following
ModuleNotFoundError: No module named 'define'
ModuleNotFoundError: No module named 'define'  Hi, My Python... 'define' How to remove the ModuleNotFoundError: No module named 'define'... to install padas library. You can install define python with following command
ModuleNotFoundError: No module named 'Define_It'
ModuleNotFoundError: No module named 'Define_It'  Hi, My Python... 'Define_It' How to remove the ModuleNotFoundError: No module named 'Define... have to install padas library. You can install Define_It python with following
Define computer software.
Define computer software.  How to define a computer software?   A computer software is a set of instruction that tell the computer what to do
user define exception programs
user define exception programs  user define exception programs   Please visit the following links: http://www.roseindia.net/java/java-exception/user-defined-exception.shtml http://www.roseindia.net/java/exceptions
objective c define float
objective c define float  Hi, How to define float variable in objective c? Thanks   Hi, Here is the example of defining float variable. float i; i=10; Thanks   Hi, Here is another example: // File
ModuleNotFoundError: No module named 'constant_listener'
ModuleNotFoundError: No module named 'constant_listener'  Hi, My... named 'constant_listener' How to remove the ModuleNotFoundError: No module named 'constant_listener' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'py-constant'
ModuleNotFoundError: No module named 'py-constant'  Hi, My Python... 'py-constant' How to remove the ModuleNotFoundError: No module named 'py-constant' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'constant-sorrow'
ModuleNotFoundError: No module named 'constant-sorrow'  Hi, My... named 'constant-sorrow' How to remove the ModuleNotFoundError: No module named 'constant-sorrow' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'constant_listener'
ModuleNotFoundError: No module named 'constant_listener'  Hi, My... named 'constant_listener' How to remove the ModuleNotFoundError: No module named 'constant_listener' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'constant-sorrow'
ModuleNotFoundError: No module named 'constant-sorrow'  Hi, My... named 'constant-sorrow' How to remove the ModuleNotFoundError: No module named 'constant-sorrow' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'mih-constant'
ModuleNotFoundError: No module named 'mih-constant'  Hi, My Python... 'mih-constant' How to remove the ModuleNotFoundError: No module named 'mih-constant' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'py-constant'
ModuleNotFoundError: No module named 'py-constant'  Hi, My Python... 'py-constant' How to remove the ModuleNotFoundError: No module named 'py-constant' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'py-constant'
ModuleNotFoundError: No module named 'py-constant'  Hi, My Python... 'py-constant' How to remove the ModuleNotFoundError: No module named 'py-constant' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'py-constant'
ModuleNotFoundError: No module named 'py-constant'  Hi, My Python... 'py-constant' How to remove the ModuleNotFoundError: No module named 'py-constant' error? Thanks   Hi, In your python environment
When will you define a method as static?
When will you define a method as static?  Hi, When will you define a method as static? thanks
how to set the value of textfield constant
how to set the value of textfield constant  how to set the value of textfield constant
how to define variable in node js
how to define variable in node js  Hi, I want to know the correct way to define variable in node js. how to define variable in node js? Thanks   Hi, Node js is nothing but server-side JavaScript. You can define
how to define variable in node js
how to define variable in node js  Hi, I want to know the correct way to define variable in node js. how to define variable in node js? Thanks   Hi, Node js is nothing but server-side JavaScript. You can define
Version of commons-jelly-tags-define>commons-jelly-tags-define dependency
List of Version of commons-jelly-tags-define>commons-jelly-tags-define dependency
Define the session factory interface in hibernate?
Define the session factory interface in hibernate?  Define the session factory interface in hibernate?   Session factory is used for manageing the session objects.public interface SessionFactory extends Referenceable
ModuleNotFoundError: No module named 'constant-contact-python'
ModuleNotFoundError: No module named 'constant-contact-python'  Hi...: No module named 'constant-contact-python' How to remove the ModuleNotFoundError: No module named 'constant-contact-python' error? Thanks   
ModuleNotFoundError: No module named 'constant-contact-python'
ModuleNotFoundError: No module named 'constant-contact-python'  Hi...: No module named 'constant-contact-python' How to remove the ModuleNotFoundError: No module named 'constant-contact-python' error? Thanks   
ModuleNotFoundError: No module named 'constant_time_compare'
ModuleNotFoundError: No module named 'constant_time_compare'  Hi...: No module named 'constant_time_compare' How to remove the ModuleNotFoundError: No module named 'constant_time_compare' error? Thanks   Hi

Ads