Пример #1
0
<html>
  <head>
    <title></title>
  </head>
  <body>
    <p>
      <?php 
class Person
{
    public static function say()
    {
        echo "Here are my thoughts!";
    }
}
class Blogger extends Person
{
    const cats = 50;
}
echo Blogger::cats;
Blogger::say();
?>
    </p>
  </body>
</html>


<?php

class Person
{
    public static function say()
    {
        echo "Here are my thoughts!";
    }
}
class Blogger extends Person
{
    const cats = 50;
}
echo Blogger::say();
echo Blogger::cats;