PHP Curl, where can I find a list of integer equivelants of constants
To expand on ajreal's answer
$constants = get_defined_constants(true);
$curlOptLookup = preg_grep('/^CURLOPT_/', array_flip($constants['curl']));
var_dump($curlOptLookup);
The above gives an integer lookup, so the following would work:
echo $curlOptLookup[119]; // outputs "CURLOPT_FTP_SSL"
If you want the options, the correct way round it needs to be flipped again:
$curlOpts = array_flip($curlOptLookup);
echo $curlOpts['CURLOPT_FTP_SSL']; // outputs 119
$arr = get_defined_constants(true);
var_dump($arr['curl']);