Tom Rogers wrote:
Hi,
Monday, January 2, 2006, 4:37:17 AM, you wrote:
DG> Hello
DG> I am trying to access the constant name as string and not the constant
DG> contents. For example,
DG> define('myconst', 'const text 1');
DG> $myArray = array()
DG> myArray['myconst'] = "this is it"
DG> etc.
Hi,
Monday, January 2, 2006, 4:37:17 AM, you wrote:
DG> Hello
DG> I am trying to access the constant name as string and not the constant
DG> contents. For example,
DG> define('myconst', 'const text 1');
DG> $myArray = array()
DG> myArray['myconst'] = "this is it"
DG> etc.
DG> $xmltext="";
DG>
Hello
I am trying to access the constant name as string and not the constant
contents. For example,
define('myconst', 'const text 1');
$myArray = array()
myArray['myconst'] = "this is it"
etc.
$xmltext="";
foreach ($myArray as $key => $val) {
echo "$key = $val\n\n";
$xmltext .= "$xmlt
3 matches
Mail list logo