|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-08-10 02:42 UTC] bjori@php.net
Description: ------------ Any change we can make get_headers() to act like parse_url(), i.e. retrive a particular respons (see: http://news.php.net/php.cvs/33239)? Reproduce code: --------------- <?php $last_modified = get_headers("http://example.com", 1, "Last-Modified"); echo $last_modified; ?> Expected result: ---------------- Wed, 08 Jan 2003 23:11:55 GMT PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
I don't think it has much need now that we have array dereferencing: $last_modified = get_headers("http://example.com", 1)["Last-Modified"]; echo $last_modified; (hi Hannes! :P)