Variable name for constants?

From: Date: Thu, 11 Dec 2008 08:01:35 +0000
Subject: Variable name for constants?
Groups: php.general 
Request: Send a blank email to php-general+get-284466@lists.php.net to get a copy of this message
I've been experimenting with having a varaible constant name, but failed miserably... Can I please have a pointer? What I'm trying to do is something like this: $name = "home"; Then read the constant IMG_HOME, like IMG_$name, I'm not sure I make myself understood, but I hope so.. Anders.

« previous php.general (#284466) next »