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

Post a comment


Thanks for commenting. Please remember to be nice to others and keep your comment relevant to the discussion. I reserve the right to remove comments that don't meet these simple guidelines.