Définir des constants en PHP

Author:

 constant
Download

<?php

   class Fonctions_math
   {
     const PI = '3.14159265';
     const E = '2.7182818284';
     const EULER = '0.5772156649';/
   }

   echo Fonctions_math::PI;

?>

Leave a Reply

Your email address will not be published. Required fields are marked *


three − = 1