PHP 8.5.0 Alpha 4 available for testing

Voting

: min(one, three)?
(Example: nine)

The Note You're Voting On

tom at tomwardrop dot com
13 years ago
It seems the file system analogy only goes so far. One thing that's missing that would be very useful is relative navigation up the namespace chain, e.g.

<?php
namespace MyProject {
class
Person {}
}

namespace
MyProject\People {
class
Adult extends ..\Person {}
}
?>

That would be really nice, especially if you had really deep namespaces. It would save you having to type out the full namespace just to reference a resource one level up.

<< Back to user notes page

To Top