Re: [PHP] Variable variable using constant

2011-10-12 Thread Marc Guay
>   $var = constant('DESKTOP_URL_' . $_SESSION['lang']); Very nice, thank you. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable variable using constant

2011-10-12 Thread Robert Williams
On 10/12/11 11:51, "Marc Guay" wrote: >Let's say that I have 2 constants > >DEFINE('DESKTOP_URL_en', "http://www.website.com/index.php?page=home";); >DEFINE('DESKTOP_URL_fr', >"http://www.website.com/index.php?page=accueil";); > >and I would like to populate the value of an href with them depend