Constant Parameters

From: Date: Fri, 02 Mar 2007 18:25:50 +0000
Subject: Constant Parameters
Groups: php.internals 
Request: Send a blank email to internals+get-28203@lists.php.net to get a copy of this message
Hello! It would be nice if in PHP 6 using constant parameters for functions and methods would be possible. This feature is e.g. available in Java. function doSth (const A) {
    if (defined ("A")) echo "A is a constant";
} doSth ("foo"); Cheers, Jay

« previous php.internals (#28203) next »