Core Function
View Source on Trac ↗ _wp_translate_php_url_constant_to_key()
_wp_translate_php_url_constant_to_key( mixed $constant ) Translates a PHP_URL_* constant to the named array keys PHP uses.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $constant int | PHP_URL_* constant. Required |
Return Value
((string)
| false) The named key or false.
Function Information
Since Version
4.7.0
Source File
wp-includes/http.php
Advertisement