Main Menu

search

You are here

PHP Constants:

to define and view a PHP constant:

<?php
// Defining constant
define("SITE_URL", "https://www.tutorialrepublic.com/");

// Using constant
echo 'Thank you for visiting - ' . SITE_URL;
?>