note 114578 added to language.types.string

From: Date: Sat, 08 Mar 2014 13:14:19 +0000
Subject: note 114578 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-198832@lists.php.net to get a copy of this message
In Example #8, above, consider the risk to the script if a programmer were to define('koolaid1', 'XYZ'); For this reason it's wise to use quotes around literal-string associative array keys. As written without quotes, PHP should raise a Notice. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.types.string.php Edit -- https://master.php.net/note/edit/114578 Del: integrated -- https://master.php.net/note/delete/114578/integrated Del: useless -- https://master.php.net/note/delete/114578/useless Del: bad code -- https://master.php.net/note/delete/114578/bad+code Del: spam -- https://master.php.net/note/delete/114578/spam Del: non-english -- https://master.php.net/note/delete/114578/non-english Del: in docs -- https://master.php.net/note/delete/114578/in+docs Del: other reasons-- https://master.php.net/note/delete/114578 Reject -- https://master.php.net/note/reject/114578 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198832) next »