Advertisement
Yousuf1791

Book-page-180

Aug 18th, 2022
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2.  
  3. interface MathInterface{
  4.     const MSG = "Math Interface";
  5.  
  6.     const PI = 3.1415;
  7.  
  8.     public function calculate();
  9. }
  10.  
  11. echo MathInterface::MSG . "<br>";
  12. echo "MathInterface::PI";
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement