Question:What is constant? How can you declare a constant? 

Answer A constant is a value that cannot be modified throughout the execution of a program. Constant are declare by using the define() function.Its prototype follows: boolean define(string name, mixed value)Example define("PI",3.14159); echo PI; //returns 3.14159 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 785
What is constant? How can you declare a constant?
Copyright © 2024. Powered by Intellect Software Ltd