Hi,
ausgehend davon, dass an der Stelle
$arr['foo'];
für 'foo' ohnehin ein String erwartet wird, wär's doch schön, wenn eine Schreibweise$arr[foo];
genügen würde.
Nein, weil das an der Stelle nicht von der Konstante foo zu unterscheiden wäre.
Gibt es irgendwo eine Konfigurations-Einstellung mit der das voreingestellt werden kann?
Du kannst höchstens am error_reporting schrauben, so dass es dir dafür keine Meldung “use of undefined constant foo, assuming 'foo'” mehr ausgibt.
MfG ChrisB
--
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?