parse_url(PHP 4, PHP 5) parse_url — Parse a URL and return its components ОписаниеThis function parses a URL and returns an associative array containing any of the various components of the URL that are present. This function is not meant to validate the given URL, it only breaks it up into the above listed parts. Partial URLs are also accepted, parse_url() tries its best to parse them correctly. Список параметров
Возвращаемые значенияOn seriously malformed URLs, parse_url() may return FALSE and emit a E_WARNING. Otherwise an associative array is returned, whose components may be (at least one):
If the component parameter is specified a string is returned instead of an array. Список изменений
Примеры
Пример #1 A parse_url() example
<?phpРезультат выполнения данного примера:
Примечания
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |