note 110075 added to language.variables.basics

From: Date: Sun, 16 Sep 2012 22:10:46 +0000
Subject: note 110075 added to language.variables.basics
Groups: php.notes 
Request: Send a blank email to php-notes+get-190813@lists.php.net to get a copy of this message
Answer to previous remark (2012-06-20). Actually, the regular expression *is* correct, but it applies to bytes (as correctly stated in 'Note'), not to characters. In your example $Ελληνικά, although the Ε is Unicode U+0395, which is greater than U+00FF, its UTF-8 representation uses two bytes CE and 95, both of them in range 80-FF. Similarly, the λ is U+03BB, but its UTF-8 representation uses two bytes CE and BB. The complete UTF-8 representation for Ελληνικά is : CE 95 CE BB CE BB CE B7 CE BD CE B9 CE BA CE AC All this perfectly conforms to the regular expression given. ---- Server IP: 69.147.83.199 Probable Submitter: 212.198.29.79 ---- Manual Page -- http://www.php.net/manual/en/language.variables.basics.php Edit -- https://master.php.net/note/edit/110075 Del: integrated -- https://master.php.net/note/delete/110075/integrated Del: useless -- https://master.php.net/note/delete/110075/useless Del: bad code -- https://master.php.net/note/delete/110075/bad+code Del: spam -- https://master.php.net/note/delete/110075/spam Del: non-english -- https://master.php.net/note/delete/110075/non-english Del: in docs -- https://master.php.net/note/delete/110075/in+docs Del: other reasons-- https://master.php.net/note/delete/110075 Reject -- https://master.php.net/note/reject/110075 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190813) next »