FAQ

The PHP FAQ is your first stop for general information and those questions that seem to be on most people\'s minds.

Books

Books are convenient resources to begin exploring PHP. The titles listed here will help you to start learning PHP, as well as extending your existing knowledge.

Sample Code

Looking for some more sample PHP scripts? Our links page page lists some archives of sample PHP code - great places to find many example scripts and useful functions, organized for your searching pleasure!

'; commonHeader("Documentation"); $man_languages = array('en', 'pt_BR', 'cs', 'nl', 'fr', 'de', 'hu', 'it', 'ja', 'kr', 'es'); # array structure: (header, link text, show_size_in_link) $formats = array( "" => array("View Online", "view", false), "html/" => array("View Online (plain)", "view", false), "bigmanual.html.gz" => array("Single HTML", "html.gz", true), "manual.txt.gz" => array("Plain text", "txt.gz", true), "manual.tar.gz" => array("Many HTML files", "tar.gz", true), "manual.zip" => array("Many HTML files", "zip", true), "manual.pdf" => array("PDF", "pdf", false), "manual_doc.pdb" => array("PalmPilot DOC", "doc.pdb", true), "manual_isilo.pdb" => array("PalmPilot iSilo", "isilo.pdb", true), "manual.chm" => array("Windows HTML Help", "chm", true) ); ?>

PHP Manual

The PHP manual is available in a selection of languages and formats. Pick a language and format from the table below. Tip: If you are using Internet Explorer, the file size will show up, when you move the mouse above one link. If you use another browser you can click here to see the file sizes.

$v[0]\n"; }?> \n\n"; reset($formats); while (list($fn,$details) = each($formats)) { echo "\n"; } }?>
$language"; # temporary hacks until pdf and chm are auto-generated if ($fn == "manual.pdf") { $link_to = "http://snaps.php.net/~jah/pdf/manual-$langcode.pdf"; } elseif ($fn == "manual.chm") { $link_to = "distributions/manual_$langcode.chm"; } else { $link_to = "manual/$langcode/$fn"; } # if no size required [pdf, online], then just print, else # decide what to do according to the $size of the file if (!$details[2]) { echo "$details[1]"; } else { $size = @filesize($link_to); if ($size) { echo "$details[1]"; if ($sizes) { echo '
' . (int) ($size/1024) . 'Kb'; } } else { echo " "; } } echo "

PHP Annotated Manuals

More Information

CVS Account

Old/Unsupported Information