Loading, please wait...

A to Z Full Forms and Acronyms

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

Jan 20, 2022 PHP, 924 Views
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);
?>
A to Z Full Forms and Acronyms