Глава 14: существование метода

This commit is contained in:
Igor Simdyanov
2022-05-02 11:59:30 +03:00
parent 9f2325e800
commit 9f724eb725
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<?php
require_once 'point.php';
$point = new Point;
if (method_exists($point, 'say')) {
echo $point->say('PHP');
}