Files
php_8/namespace/namespaces_alt.php
2022-08-04 10:04:38 +03:00

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;
}
}
}