This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP Constants

Constants are Global

Welcome to W3Schools.com!

<?php
// define constant
define("GREETING", "Welcome to W3Schools.com!");

// define function
function myTest() {
  echo GREETING;
}
 
// display greeting
myTest();
?>