Files
php_8/namespace/namespaces.php
2022-05-27 21:28:32 +03:00

27 lines
424 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;
}
}