Home Answers Viewqa PHP define a constant in php

 
 


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

hii,

How do you define a constant in php?

View Answers

October 29, 2010 at 3:33 PM


hello,

we can define a constant in php like this

define ("CONST", 50);









Related Pages:
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
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
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
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
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
Define HibernateTemplate?
Define HibernateTemplate?  Hi, Define HibernateTemplate? Thanks
Define stack
Define stack  hii, Explain stack
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 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
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 - WebSevices
PHP  Hello, I am new in PHP World! I have to solve this Error. PHP Notice: Use of undefined constant Comment - assumed 'Comment' in /srv...//mainwithgroups.php on line 44, PHP Notice: Use of undefined constant Comment
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. In php page, if user enters data
PHP Numbers Variables
PHP Variables Numbers We already define that variables are used to store... in PHP always recognized with $sign. After declaring a variable once in your script you can used again and again.  You can also assign numbers in PHP variable
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
What is an Assiciative Array in PHP ?
What is an Assiciative Array in PHP ?  Hi, I am fresher in PHP scripting Language. I am very confused how to define the associate array in PHP? I need any example related to PHP Associative Array. So feel free for any suggestion
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
PHP Array
lets see how to define an array.. Defining an array in php... but there could be different ways to define it. In simple words an array is used....[...] or associative. In PHP programming arrays are generally used for either
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
PHP Autoload
PHP Autoloading Classes: It is very common in PHP programming that we need.... It is indeed a hectic job for each PHP programmer. But with the advent of PHP 5.0, this is not necessary anymore. We can define an   _autoload function to call
php
php   what is php   PHP Tutorials
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 Variables between Scripts
PHP Variables Between Scripts As you know how to define variables and how to use them in your form. Now, we learn how to use  PHP variables... php variables. Page_1(emailform.php) <html> <head>   
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
php using javasript  how to set timer in php using javasript
PHP variables
PHP Variable Index A variable is like a container which stores a value which... a vital role and in each language the declaration of it varies. Unlike a constant... we will study declaration, types and use of variables in PHP. We will see
import user-define package - Applet
import user-define package  how to import user-define package to the frame/graphic of the applet. could i create a new frame or not ?? please help me ...  Hi friend, import java.io.*; import java.awt.*; import
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
Facelet define Tag
Facelet define Tag          This tag is used to define the name of the content... this define tag. This name attribute is required to be same as name attribute
How to define variable in Velocity
How to define variable in Velocity       This Example shows you how to define a variable in velocity. Methods used in this example are described below:- 1:- Initialize
php
php  show the constructor overloading in php
PHP
PHP  How to work in drupal with PHP
Dynamically update the Label & set Bounds constant between 2 Label(Thread)
Dynamically update the Label & set Bounds constant between 2 Label(Thread)  strong textpackage xcada; import com.mysql.jdbc.Connection; import com.mysql.jdbc.PreparedStatement; import java.awt.Font; import
Dynamically update the Label & set Bounds constant between 2 Label(Thread)
Dynamically update the Label & set Bounds constant between 2 Label(Thread)  strong textpackage xcada; import com.mysql.jdbc.Connection; import com.mysql.jdbc.PreparedStatement; import java.awt.Font; import
Dynamically update the Label & set Bounds constant between 2 Label(Thread)
Dynamically update the Label & set Bounds constant between 2 Label(Thread)  strong textpackage xcada; import com.mysql.jdbc.Connection; import com.mysql.jdbc.PreparedStatement; import java.awt.Font; import

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.