0

About php

Why we write this in our php file define('DB_SERVER', 'localhost');? Someone pls tell me its significance.

23rd Dec 2017, 4:01 PM
Shivam Mirje
Shivam Mirje - avatar
2 Answers
+ 4
Defines a named constant at runtime. further information can be read here: http://php.net/manual/en/function.define.php
23rd Dec 2017, 4:20 PM
Ipang
+ 1
Usually you use that and others to use constants for some purpose
23rd Dec 2017, 5:01 PM
Daniel
Daniel - avatar