Home > PHP > Function > HTTP > http_match_modified()

http_match_modified()

http_match_modified - Match last modification

Syntax

bool http_match_modified (int $timestamp, bool $for_range)

Arguments

  • timestamp - Unix timestamp; current time, if omitted
  • for_range - if set to TRUE, the header usually used to validate HTTP ranges will be checked

Description

Matches the given Unix timestamp against the clients If-Modified-Sinceresp. If-Unmodified-SinceHTTP headers.

Version

PHP PECL pecl_http >= 0.1.0

Return value

Returns TRUE if timestamp represents an earlier date than the header, else FALSE.