Namespace Operator

  • Posted by Mike Naberezny in PHP

    If you have been trying to follow the countless threads on the php-internals mailing list regarding a new operator for namespaces, my script below will definitely save you time.

    // generate a new namespace operator suggestion
    function namespaceOperator() {
        return chr(rand(33,47)) . chr(rand(33,47)) ;
    }
    
    // predict next ten suggestions to php-internals
    for ($i=0; $i<10; $i++) {
        echo namespaceOperator() . "\n";
    }
    

    Update: http://news.php.net/php.zend-engine.cvs/5894