note 109109 added to language.variables.basics

From: Date: Wed, 20 Jun 2012 22:40:07 +0000
Subject: note 109109 added to language.variables.basics
Groups: php.notes 
Request: Send a blank email to php-notes+get-188727@lists.php.net to get a copy of this message
The regular expression they provide is not correct. It *is* a good recommendation but having inherited several cyrillic projects over the years, I know this not to be the case. Many many UTF-8 characters outside that range can be used as variables. As an example, try: <?php $Ελληνικά = "Γειά σου κόσμος (Hello World)!"; echo $Ελληνικά; ?> It does in fact return the promised result! Γειά σου κόσμος (Hello World)! And all of those letters, including the E appearing thing are outside of the extended ASCII range implied by that regular expression. ---- Server IP: 69.147.83.197 Probable Submitter: 216.114.196.226 ---- Manual Page -- http://www.php.net/manual/en/language.variables.basics.php Edit -- https://master.php.net/note/edit/109109 Del: integrated -- https://master.php.net/note/delete/109109/integrated Del: useless -- https://master.php.net/note/delete/109109/useless Del: bad code -- https://master.php.net/note/delete/109109/bad+code Del: spam -- https://master.php.net/note/delete/109109/spam Del: non-english -- https://master.php.net/note/delete/109109/non-english Del: in docs -- https://master.php.net/note/delete/109109/in+docs Del: other reasons-- https://master.php.net/note/delete/109109 Reject -- https://master.php.net/note/reject/109109 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188727) next »