Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62738 invoked by uid 1010); 26 Sep 2004 10:06:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62714 invoked from network); 26 Sep 2004 10:06:20 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 26 Sep 2004 10:06:20 -0000 Received: from pd95e9746.dip.t-dialin.net ([217.94.151.70] helo=[192.168.0.36]) by iko.gotobg.net with asmtp (Exim 4.41) id 1CBVvB-0000y4-RF; Sun, 26 Sep 2004 13:06:22 +0300 Message-ID: <41569444.90301@hristov.com> Date: Sun, 26 Sep 2004 12:04:52 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040918 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Virnstein CC: internals@lists.php.net References: <20040926093227.56736.qmail@pb1.pair.com> In-Reply-To: <20040926093227.56736.qmail@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Suggestions for PHP From: php@hristov.com (Andrey Hristov) Michael Virnstein wrote: > Hi there, > > what really would be nice, if PHP would have a more advanced way of > quoting strings similar to Perl. E.g. the q{} and qq{} function are > really helpful there or that i can use e.g. $var = !my string 'hallo'!; $var = "my string 'hallo'" If you want to have longer strings, use heredoc $var = <<< EOT Some text with double quotes(") as well as single ones(') and even $variables EOT; > and i don't have to backslash ' and " inside the string. > > another thing that i find useful in Perl is the unless construct. I > sometimes find it more readable to use "unless($error) {...} " instead > of "if (!$error) {...}". This reminds me my days when I used to program in Pascal. The latter has repeat until with reversed logic. It was PITA to find the expression for it. > > I think this would be nice additions, perhaps you'll consider > implementing them in future releases. > > Thanx > Andrey P.S. just my thoughts