hello everyone.
thanks for the email re keyword constructor.
but what exactly does it do? i.e its function.
warmest regards
Andreea
-Original Message-
From: Ren [mailto:lobbyjo...@gmail.com]
Sent: 02 August 2011 06:29
To: php-general@lists.php.net
Subject: [PHP] Keyword
On 2 August 2011 06:28, Ren wrote:
> For a long time I wanted keyword parameters in PHP. But thanks to
> newer features like traits and reflection classes I have come up with
> something that looks pretty close.
>
> trait KeywordConstructor {
> public function __construct($members) {
>
For a long time I wanted keyword parameters in PHP. But thanks to
newer features like traits and reflection classes I have come up with
something that looks pretty close.
trait KeywordConstructor {
public function __construct($members) {
$class = new ReflectionClass($this)
3 matches
Mail list logo