Using Constants in php can cut down a programmer’s time and keep organized code handy since one word can be used to represent an integer or string. The define() function is used to name a constant and and create a value for the constant.
The code below whows how to create two constants and output the constants’ values in an echo statement.
define(‘MY_SECOND_CONSTANT’, ‘ double or single quotes.’);
echo MYCONSTANT.MY_SECOND_CONSTANT;
© 2018 ALL Rights Reserved | Sitemap
Vancouver | North Vancouver | Burnaby | Richmond | Coquitlam | Port Coquitlam | Surrey | Langley | Maple Ridge | Mission | Abbotsford | Kamloops | Kelowna | Victoria | Squamish | Whistler | Pemberton