Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85722 invoked from network); 29 Nov 2010 08:36:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2010 08:36:55 -0000 Authentication-Results: pb1.pair.com header.from=chadfulton@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chadfulton@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chadfulton@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:64135] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/60-17230-62663FC4 for ; Mon, 29 Nov 2010 03:36:55 -0500 Received: by qyk10 with SMTP id 10so7336956qyk.8 for ; Mon, 29 Nov 2010 00:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=CZx1841/qxzrESLpKUPmRdWmsJBt166t5SW8P+any6k=; b=gUd3OSNnctAOYbWrIy85fezmTVWnTNxlnW8XjkhitylzekGs/nA+7x2+DNUo3fuOdF p2R8lHLaAVhwQ0cXf04P9+N5DatEOfQWt/emSEpLiOwVc2+X5UkOqiNknWrnJjbr4vYx dGAZQNfUqGafQyreaZDmelblVEoKYyo2Wifps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=G79cNzxdYNM8dOBpXF+4SdPpzLO9+D67GU5boH91By7JmjRk63WoAom1AOQL2AmtLL EFmw1saBNIqzjk7DOm5YxgLUCGu86Ry/rc3OvHzr1KByA2UFbj8Zk8n62j4Mhop161fn GRBcmxtfSah2oS2It7oO443+prh/E6tPdhQrU= MIME-Version: 1.0 Received: by 10.229.221.17 with SMTP id ia17mr760775qcb.24.1291019812427; Mon, 29 Nov 2010 00:36:52 -0800 (PST) Received: by 10.229.25.210 with HTTP; Mon, 29 Nov 2010 00:36:52 -0800 (PST) In-Reply-To: <1435df535dae7a2badf6faf09a6b54dc@mohiva.com> References: <1435df535dae7a2badf6faf09a6b54dc@mohiva.com> Date: Mon, 29 Nov 2010 00:36:52 -0800 Message-ID: To: Christian Kaps , internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: C-sharp style property get/set syntax for PHP From: chadfulton@gmail.com (Chad Fulton) On Sun, Nov 28, 2010 at 11:48 PM, Christian Kaps wrote: ... > /** > =A0* > =A0*/ > public function set name(string $name) { > =A0 =A0$this->name =3D htmlentities($name); > =A0 =A0$this->name =3D strip_tags($this->name); > } > > /** > =A0* > =A0*/ > public function get name($name) { > =A0 =A0return $this->name; > } > > Greetings, > Christian > For whatever it's worth, I think that this syntax fits much better into PHP than do either of the those in the RFC.