PHP

How to create a case in-sensitive constant using define() function in PHP | PHP programs

How to create a case in-sensitive constant using define() function in PHP | PHP programs

How to create a case in-sensitive constant using define() function in PHP | PHP programs

We will create a case in-sensitive PI constant using the defined function.

<?php


define(PI, 3.14);

$radius = 25;

$area = PI * $radius * $radius;

print ("Area of circle: " . $area);
?>
TutorialsLink Curator

This is an official account managed by the team TutorialsLink Community