PHP Tutorial
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
Start learning PHP now »Easy Learning with "PHP Tryit"
With our online "PHP Tryit" editor, you can edit the PHP code, and click on a button to view the result.
Example
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>
Try it Yourself »
Click on the "Try it Yourself" button to see how it works.
PHP Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.
PHP References
W3Schools' PHP reference contains different categories of all PHP functions, keywords and constants, along with examples.
Array
Calendar
Date
Directory
Error
Exception
Filesystem
Filter
FTP
JSON
Keywords
Libxml
Mail
Math
Misc
MySQLi
Network
Output
RegEx
SimpleXML
Stream
String
Var Handling
XML Parser
Zip
Timezones