Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

define a constant in php

Ads

 
 

Share on Google+Share on Google+

samar
define a constant in php
1 Answer(s)      6 years and 9 months ago
Posted in : PHP

hii,

How do you define a constant in php?

Ads
View Answers

October 29, 2010 at 3:33 PM


hello,

we can define a constant in php like this

define ("CONST", 50);

Ads









Related Tutorials/Questions & Answers:
define a constant in php
define a constant in php   hii, How do you define a constant in php?   hello, we can define a constant in php like this define ("CONST", 50
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
Advertisements
How do you define a constant?
How do you define a constant?  How do you define a constant in php
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
php define array
php define array  How to define array in PHP
php define variable
php define variable  How to define a simple and a global variable in PHP
define string variable in php
define string variable in php  how to define string variable in PHP
PHP Constant Function
of the constant.   PHP Constant Example: <?php define("pi",3.14...Constants: We use define() function or const keyword to define a constant... constant Example: <?php const ab="324"; const ab="32
PHP Constant
PHP Constants: Constants are like any other variables to store information but the difference between the constant and a variable is value of constant can.../>"; echo "If we would like to print constant within \"
PHP Class Constant
PHP Class Constants: Sometimes we need to have constant values  in our...: <?php class A { const newValue="Constant value does... before the constant to use or to declare it. The value of the constant should
PHP Magic Constant
PHP Magic Constants: In PHP there are various predefined constants, but many... constants are available in PHP, but seven magical constants are most important... of the magic constants are as follows: 1) __LINE__: This constant is used to indicate
Define HibernateTemplate?
Define HibernateTemplate?  Hi, Define HibernateTemplate? Thanks
Define stack
Define stack  hii, Explain stack
Define please!?!
Define please!?!  What is tree map sort
PHP
PHP   hii, Define PHP?   Hello, The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web
Define Simulation
Define Simulation  hello,, Explain Simulation?   hii, Simulation is the process of forming an abstract model from a real situation in order to understand the impact of modifications and the effect of introducing
Define stack
Define stack  hii, Explain stack?   hello, Stack is an ordered list in which all the insertions and deletions made at one end called top of the stack. It is referred as LIFO list. Last inserted item is deleted First
how to set the value of textfield constant
how to set the value of textfield constant  how to set the value of textfield constant
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
php
php   what is php   PHP Tutorials
Version of cn.featherfly>featherfly-constant-core dependency
List of Version of cn.featherfly>featherfly-constant-core dependency
Version of cn.featherfly>featherfly-constant-spring dependency
List of Version of cn.featherfly>featherfly-constant-spring dependency
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
php
php  what is php
php
php using javasript  how to set timer in php using javasript
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
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
Define float in Java
Define float in Java  Hi, What is the correct method to define... JavaFloatExample { /* Learn How to define and use float variable in Java...); } } Thanks  public class JavaFloatExample { /* Learn How to define
PHP Expression
PHP Expressions: In every language expression plays a vital role, in PHP... is an expression and this is the easiest way to define and understand expression... is a variable and 323 is a constant value. Following examples will try to make
php
php  show the constructor overloading in php