Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91123 invoked from network); 13 Mar 2014 01:10:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2014 01:10:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:57228] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/41-17655-E9501235 for ; Wed, 12 Mar 2014 20:10:55 -0500 Received: by mail-la0-f52.google.com with SMTP id ec20so206950lab.11 for ; Wed, 12 Mar 2014 18:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=bYhJHoP7+U4se/2ErRQjQwDb1GTEr/XYjX8owBO9XNA=; b=RBSzK0l2NL6Ketqnwha+4IXT6OIaNhUSNA7aJIdX6fMho84oVwr+l1W64BC2WFBvMM 2mf9sWXS6GWI9scLRihzWDvt9qI3JfeRPH3kRrErif53mXA0nObm5VWA1QppDpxLSO7z kI7i6psD8X7l+fNFR5vMRcbUJKlV+H//gxh+A0ZUid5x4wMzHAO+g9j4Uajv4MvUR7tD 5xRJPmoQKVU8j4Rt0EAUVDHsdYbr22HgWW+2zptOM5KoDalZyx/mOLR35T2xgPropw/h 3oMutTz7ZPZit8hMjIg82yi3mrR8oLIuCf3jL9JQKQkrFkAVLsvF06oxG4xnQQF7fm7b p/qw== X-Received: by 10.112.46.225 with SMTP id y1mr354701lbm.12.1394673051384; Wed, 12 Mar 2014 18:10:51 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Wed, 12 Mar 2014 18:10:11 -0700 (PDT) In-Reply-To: <532055F3.5020708@googlemail.com> References: <531EE602.3090207@lsces.co.uk> <531EEE2A.2000602@googlemail.com> <531F0146.5010701@lsces.co.uk> <53202DC5.4010306@googlemail.com> <532033E1.60602@lsces.co.uk> <53203687.7090405@googlemail.com> <532037F4.6020204@googlemail.com> <532049BB.2080605@lsces.co.uk> <53204C6B.3000506@googlemail.com> <5320511A.7040606@lsces.co.uk> <532055F3.5020708@googlemail.com> Date: Thu, 13 Mar 2014 10:10:11 +0900 X-Google-Sender-Auth: 8g-KFd6L9ehp8r_mRcYjlDNIy2g Message-ID: To: Crypto Compress Cc: Lester Caine , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a11349474ce3ef904f4729f32 Subject: Re: [PHP-DEV] Unicode strings? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11349474ce3ef904f4729f32 Content-Type: text/plain; charset=UTF-8 Hi all, On Wed, Mar 12, 2014 at 9:41 PM, Crypto Compress < cryptocompress@googlemail.com> wrote: > You can use unicode strings in many areas of PHP, but it is not by design, >> but rather as the result of 'holes' in the design. >> > > http://3v4l.org/bJYDM > Oh, i see. Thanks! The spec of variable name is defined. As a regular expression, it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' http://www.php.net/manual/en/language.variables.basics.php Therefore, people are using something more meaningful like http://3v4l.org/78ek4 It's useful for teaching kids to program with their native language, for example. I see many codes that use Japanese strings in Unit tests. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11349474ce3ef904f4729f32--