mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-07-25 17:13:08 +00:00
33 lines
532 B
PHP
33 lines
532 B
PHP
<?php
|
|
namespace PHP8\constants
|
|
{
|
|
const VERSION = '1.0';
|
|
}
|
|
|
|
namespace PHP8\functions
|
|
{
|
|
function debug(array|object $obj) : void
|
|
{
|
|
echo '<pre>';
|
|
print_r($obj);
|
|
echo '</pre>';
|
|
}
|
|
}
|
|
|
|
namespace PHP8\classes
|
|
{
|
|
class Page
|
|
{
|
|
protected $title;
|
|
protected $content;
|
|
public function __construct(
|
|
string $title = '',
|
|
string $content = ''
|
|
)
|
|
{
|
|
$this->title = $title;
|
|
$this->content = $content;
|
|
}
|
|
}
|
|
}
|