<?php class Math { const PI = 3.14159; public function getCircleArea($radius) { return self::PI * $radius * $radius; } } $math = new Math(); echo $math->getCircleArea(5); // خروجی: 78.53975