note 51154 modified in language.variables.variable by danbrown

From: Date: Wed, 24 Jun 2009 16:55:03 +0000
Subject: note 51154 modified in language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157403@lists.php.net to get a copy of this message
You can use constants in variable variables, like I show below. This works fine: <?php define("TEST","Fuchs"); $Fuchs = "Test"; echo TEST . "<BR>"; echo ${TEST}; ?> output: Fuchs Test --was-- You can use constants in variable variables, like I show below. This works fine: <? define("TEST","Fuchs"); $Fuchs = "Test"; echo TEST . "<BR>"; echo ${TEST}; ?> output: Fuchs Test http://php.net/manual/en/language.variables.variable.php

« previous php.notes (#157403) next »