Bug #12712: a little suggestion

From: Date: Mon, 13 Aug 2001 08:05:59 +0000
Subject: Bug #12712: a little suggestion
Groups: php.dev 
Request: Send a blank email to php-dev+get-63049@lists.php.net to get a copy of this message
From: martin@semester.sk Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: *General Issues Bug description: a little suggestion Good day. It is not a really bug report but a little suggestion for new PHP relase. I'll be good thing to add to PHP language ability to create functions with named parameters like in Visual Basic. For example: //Classic function: function printhello($name, $bold = false, $italic = false) { $ret = "Hello $name!" if ($bold) $ret = "<strong>$ret</strong>"; if ($italic) $ret = "<em>$ret</em>"; echo $ret; } //Suggested function: function printhello(name: $name, fat: $bold = false, emphased: $italic = false) { // same body as above ... } This new function could be called like: printhello("Martin", true); or like new: printhello(fat: true, name: "Martin"); Thank you. -- Edit bug report at: http://bugs.php.net/?id=12712&edit=1

« previous php.dev (#63049) next »