Chaitanya Lakshmi
  • About Me
    • Knowledge Blog
    • Linked In
    • Facebook
  • Static
  • PHP
  • Drupal
  • JAVA
  • Learning Tutorials
  • Contact Us
  • About Me
    • Knowledge Blog
    • Linked In
    • Facebook
  • Static
  • PHP
  • Drupal
  • JAVA
  • Learning Tutorials
  • Contact Us

How to define a constant in PHP?

2/27/2012

0 Comments

 
  • set(‘MY_CONST’, 10);
  • set(‘MY_CONST’=10);
  • define(‘MY_CONST’, 10);
  • const $my_const = 10;
  • I don’t know
Answer:
define(‘MY_CONST’, 10);

0 Comments



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    February 2012

    Categories

    All
    General
    Krds
    Phponweb

    RSS Feed

Powered by Create your own unique website with customizable templates.