Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to create constant in php

<?php
  
#Syntax to define a constant is Define("Name","Value","Case-insensitive")

#For case-insensitive, sensitive is default
  
define("Tau","6.28318530718","true");
echo tAU;

#Fun fact: Tau = Pi x 2
?>
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #create #constant #php
ADD COMMENT
Topic
Name
5+2 =