Share on Google+Share on Google+

samar
define a constant in php
1 Answer(s)      6 years and 6 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);









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 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 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
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
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 stack
Define stack  hii, Explain stack
Define please!?!
Define please!?!  What is tree map sort
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
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
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   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
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
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
Define Tag:
Define Tag:       bean:define Tag - is used to define a scripting variable based on the value(s) of the specified bean... as null. bean:define Tag can't be used  to instantiate a DynaActionForm
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
Displaying Constant values from Interface in JSP - JSP-Servlet
Displaying Constant values from Interface in JSP  Hi, ******Sorry... condition becomes true for eg: there is an interface which contains constant... I am directly using the values instead of the constant variables for displaying
php
php   what is php   PHP Tutorials
php
php  what is php
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
Php Sql Quotes and Quoting
Php Sql Quotes and Quoting This example illustrates different ways to define single and double quotes in the php application with sql query. By default, PHP...; <?php   $con = mysql_connect("localhost","
php
php using javasript  how to set timer in php using javasript
Tutorials   
Java Spring Hibernate Struts Training I am Java programmer. Should I learn Java Script or Python? Delete multiple records with pagination by selecting checkboxes How to add one hour in php date? connection in php connection in php connection in php PHP magento how to make previous and next Button Display Data in php session written exam display database results question create a simple form Magento Strings in PHP Zend Framework Installation in xampp? How to prevent adding duplicate items to the shopping cart php problem maximum execution time of 30 seconds exceeded in php Call-time pass-by-reference has been removed in HTTP_POST_VARS is deprecated $_GET[] index is not defined Function mysql_db_query() is deprecated Function mysql_db_query() is deprecated Function split() is deprecated Fatal error: Call to undefined function session_register() in .php file php tag not working Error reporting in PHP Why are MySQL Routines and Views not used with PHP? How to add Click to copy function to my wordpres blog? connection of php to MySQL. loan calculator Datepicker not getting called through include function of php change url string integrate login in php Installation of wamp server Display PHP clock with user input date and time value in div from php, reloading form pre-populate form developing a system using php n mysql Configure apache Tomcat to work with Eclipse and PDT in php How to display a file for 24 hours? LOGIN ERROR LOGIN FAILED", $_SESSION['login fail']='0',}?> I GOT ERROR FOR MY PROJECT PHP Sending emails and insert into trable Tutorial college Student Admission System PLZ HELP ME. i need php code.

Ads

 
Advertisement null

Ads