note 101744 deleted from language.constants by danbrown
| From: | danbrown@php.net | Date: | Sat, 08 Jan 2011 18:46:29 +0000 |
| Subject: | note 101744 deleted from language.constants by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175544@lists.php.net to get a copy of this message | ||
Note Submitter: www.sanjaal.com
----
How can I get a defined constant's value by using its corresponding string name?
For example, CURLOPT_REFERER is a meaningful defined constant in PHP. My script intakes this name as
string.
[code]
$name = 'CURLOPT_REFERER';
[/code]
Now, my concern is to receive the value of CURLOPT_REFERER as integer/long into some other variable
by using $name input. How is this possible?