- phpversion: documentation ( source)
- session_start: documentation ( source)
<?php
namespace MyProject {
const CONNECT_OK = 1;
class Connection { static public function start() { echo 'started'; } }
function connect() { /* ... */ }
}
namespace { // global code
session_start();
$a = MyProject\connect();
echo MyProject\Connection::start();
echo phpversion();
}