HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 09:05:48 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080310231750
location: https://web.archive.org/web/20080310231750/https://www.php.net/docs
server-timing: captures_list;dur=0.626493, exclusion.robots;dur=0.022393, exclusion.robots.policy;dur=0.011846, esindex;dur=0.011787, cdx.remote;dur=48.998160, LoadShardBlock;dur=285.809739, PetaboxLoader3.datanode;dur=178.531168, PetaboxLoader3.resolve;dur=37.700210
x-app-server: wwwb-app223
x-ts: 302
x-tr: 386
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app223; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 09:05:50 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Tue, 11 Mar 2008 06:38:56 GMT
x-archive-orig-server: Apache/1.3.37 (Unix) PHP/5.2.1
x-archive-orig-x-powered-by: PHP/5.2.1
x-archive-orig-content-language: en
x-archive-orig-set-cookie: COUNTRY=USA%2C64.208.172.176; expires=Tue, 18-Mar-2008 06:38:56 GMT; path=/; domain=.php.net
x-archive-orig-x-php-load: 0.7578125, 0.7919921875, 0.79833984375
location: https://web.archive.org/web/20080310231750/https://us3.php.net/docs
x-archive-orig-connection: close
cache-control: max-age=1800
memento-datetime: Mon, 10 Mar 2008 23:17:50 GMT
link:
; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 04 Mar 2000 17:52:43 GMT", ; rel="prev memento"; datetime="Thu, 18 Oct 2007 07:24:32 GMT", ; rel="memento"; datetime="Mon, 10 Mar 2008 23:17:50 GMT", ; rel="next memento"; datetime="Thu, 08 May 2008 01:20:34 GMT", ; rel="last memento"; datetime="Sun, 27 Jul 2025 16:15:13 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_2_20080310211801_crawl104-c/52_2_20080310231437_crawl104.arc.gz
server-timing: captures_list;dur=3.760757, exclusion.robots;dur=0.140857, exclusion.robots.policy;dur=0.070177, esindex;dur=0.080746, cdx.remote;dur=279.963395, LoadShardBlock;dur=967.604674, PetaboxLoader3.datanode;dur=784.408031, PetaboxLoader3.resolve;dur=299.336936, load_resource;dur=208.681809
x-app-server: wwwb-app223
x-ts: 302
x-tr: 1595
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 09:05:51 GMT
content-type: text/html; charset=utf-8
content-length: 0
x-archive-orig-date: Mon, 10 Mar 2008 16:47:14 GMT
x-archive-orig-server: Apache/2.2.3 (CentOS)
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-content-language: en
location: https://web.archive.org/web/20080310231750/https://us3.php.net/docs.php
x-archive-orig-content-length: 0
x-archive-orig-connection: close
cache-control: max-age=1800
memento-datetime: Mon, 10 Mar 2008 23:17:50 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 06 Jan 2007 17:54:58 GMT", ; rel="prev memento"; datetime="Sun, 04 Feb 2007 08:45:36 GMT", ; rel="memento"; datetime="Mon, 10 Mar 2008 23:17:50 GMT", ; rel="next memento"; datetime="Wed, 02 Jul 2008 00:02:02 GMT", ; rel="last memento"; datetime="Sun, 07 Jul 2024 06:37:34 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_2_20080310211801_crawl104-c/52_2_20080310231437_crawl104.arc.gz
server-timing: captures_list;dur=0.662776, exclusion.robots;dur=0.023520, exclusion.robots.policy;dur=0.011070, esindex;dur=0.009691, cdx.remote;dur=38.374262, LoadShardBlock;dur=333.624920, PetaboxLoader3.datanode;dur=144.095944, PetaboxLoader3.resolve;dur=226.911547, load_resource;dur=141.028192
x-app-server: wwwb-app223
x-ts: 302
x-tr: 548
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 05 Aug 2025 09:05:51 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Mon, 10 Mar 2008 16:47:14 GMT
x-archive-orig-server: Apache/2.2.3 (CentOS)
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-content-language: en
x-archive-orig-content-length: 7184
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 10 Mar 2008 23:17:50 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 31 Oct 2001 19:45:16 GMT", ; rel="prev memento"; datetime="Thu, 06 Mar 2008 06:33:53 GMT", ; rel="memento"; datetime="Mon, 10 Mar 2008 23:17:50 GMT", ; rel="next memento"; datetime="Sat, 12 Apr 2008 02:07:09 GMT", ; rel="last memento"; datetime="Mon, 22 Mar 2021 17:57:40 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_2_20080310211801_crawl104-c/52_2_20080310231437_crawl104.arc.gz
server-timing: captures_list;dur=0.525882, exclusion.robots;dur=0.021452, exclusion.robots.policy;dur=0.011770, esindex;dur=0.012033, cdx.remote;dur=14.156476, LoadShardBlock;dur=195.456509, PetaboxLoader3.datanode;dur=76.637039, PetaboxLoader3.resolve;dur=204.566009, load_resource;dur=89.111153
x-app-server: wwwb-app223
x-ts: 200
x-tr: 363
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
PHP: Documentation
FAQ
The PHP FAQ is your first stop for general
information and those questions that seem to be on most people's minds.
If you have licensing questions, see the separate
License FAQ .
Changelog
You can also find the PHP 4 Changelog or
the PHP 5 Changelog useful,
if you would like to look up changes between various versions of PHP.
Books
There are literally thousands of books available in
English and numerous other languages. You can easily search at
Amazon.com , or
go directly to
Amazon.de
or Amazon.fr
and search there.
Sample Code
Looking for some more sample PHP scripts? Our links page lists some archives of sample PHP code -
great places to find many example scripts and useful functions, organized for
your searching pleasure!
Documentation
The PHP Manual is available online in a selection of languages.
Please pick a language from the list below.
You can learn how to integrate our online manual with various tools, including
your web browser, on our quick reference tips page.
You can also get more information about php.net URL shortcuts by visiting our
URL howto page .
Note, that many languages are just under translation, and
the untranslated parts are still in English. Also some translated
parts might be outdated. The translation teams are open to
contributions.
Formats
Destinations
View Online
English ,
Brazilian Portuguese ,
Chinese (Simplified) ,
Chinese (Hong Kong Cantonese) ,
Chinese (Traditional) ,
Czech ,
Danish ,
Dutch ,
Finnish ,
French ,
German ,
Greek ,
Hebrew ,
Hungarian ,
Italian ,
Japanese ,
Korean ,
Polish ,
Romanian ,
Russian ,
Slovak ,
Spanish ,
Swedish
Downloads
For downloadable formats, please visit our
documentation downloads page.
More documentation