note 101745 deleted from language.constants by danbrown
| From: | danbrown@php.net | Date: | Sat, 08 Jan 2011 18:46:33 +0000 |
| Subject: | note 101745 deleted from language.constants by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175545@lists.php.net to get a copy of this message | ||
Note Submitter: www.sanjaal.com
----
Looks there is not a way to convert a string name into defined constant.
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.