mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-07-25 17:13:08 +00:00
33 lines
514 B
PHP
33 lines
514 B
PHP
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<title>Пространство имен</title>
|
|
<meta charset='utf-8' />
|
|
</head>
|
|
<body>
|
|
<?php
|
|
namespace PHP8;
|
|
|
|
const VERSION = '1.0';
|
|
|
|
function debug(array|object $obj) : void
|
|
{
|
|
echo '<pre>';
|
|
print_r($obj);
|
|
echo '</pre>';
|
|
}
|
|
|
|
class Page
|
|
{
|
|
protected $title;
|
|
protected $content;
|
|
public function __construct(string $title = '', string $content = '')
|
|
{
|
|
$this->title = $title;
|
|
$this->content = $content;
|
|
}
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|