Tutorials References Exercises Certificates Search...
Academy Upgrade Get Certified Sign In
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP [Link] C C++ C# HOW TO BOOTSTRAP REACT MYSQL JQUERY ❯
P H P T U TO R I A L
PHP HOME
PHP Intro
PHP Install
PHP Tutorial
PHP Syntax
PHP Comments
PHP Variables
PHP Echo / Print ❮ Home Next ❯
PHP Data Types
PHP Strings
PHP Numbers
PHP Casting Learn PHP Become PHP Certified
PHP Math
PHP is a powerful server-side scripting Get certified with our PHP exam, includes a
PHP Constants
language for making dynamic and professionally curated study kit to guide you from
PHP Magic Constants
interactive Web pages. beginner to exam-ready.
PHP Operators
PHP If...Else...Elseif PHP is widely-used, open-source and free.
PHP Switch
h PHP is easy to learn - You will enjoy it! CERTIFICATE OF COMPLETION
This certifies that
Your Name
has passed the W3Schools PHP Certification exam and is hereby declared a
Get Certified ❯
Certified PHP Developer
Learn PHP now ❯ Verify at
The candidate has passed the exam at the Professional level.
Stale Refsnes
[Link] for [Link]
Sign in to track your progress Developer
Tools
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 Get your own PHP Server Browse
tools »
<!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 Exercises
Most chapters in this tutorial end with exercises where you can check your knowledge.
?
Exercise
What does PHP stand for?
PHP: Hyperspeed Performance
PHP: Hyperformat Programming
PHP: Hypertext Preprocessor
PHP: Hyperlink Pages
Submit Answer »
See all PHP Exercises
PHP Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.
See All PHP Examples
PHP Quiz Test
Learn by taking a quiz! This quiz will give you a signal of how much you know, or do not know, about PHP.
Start PHP Quiz!
Track Your Progress
Create a W3Schools account and get access to more features and learning materials:
View your completed tutorials, exercises, and quizzes
Keep an eye on your progress and daily streaks
Join the leaderboard and compete with others
Get your own avatar and unlock new skins
Create your own personal website
Sign Up »
Note
This is an optional feature. You can study at W3Schools without creating an account.
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
PHP CERTIFICATION
Get Certified in PHP
Complete the W3Schools PHP course, strengthen your
knowledge, and earn a certificate you can add to your
CV, portfolio, and LinkedIn profile.
school
w3 s
Get Certified Today
6
CE
02
TI 2
R
FI .
ED
❮ Home Sign in to track progress Next ❯
-->
PLUS SPACES GET CERTIFIED FOR TEACHERS BOOTCAMPS CONTACT US
Top Tutorials Top References Top Examples Get Certified
HTML Tutorial HTML Reference HTML Examples HTML Certificate
CSS Tutorial CSS Reference CSS Examples CSS Certificate
JavaScript Tutorial JavaScript Reference JavaScript Examples JavaScript Certificate
How To Tutorial SQL Reference How To Examples Front End Certificate
SQL Tutorial Python Reference SQL Examples SQL Certificate
Python Tutorial [Link] Reference Python Examples Python Certificate
[Link] Tutorial Bootstrap Reference [Link] Examples PHP Certificate
Bootstrap Tutorial PHP Reference Bootstrap Examples jQuery Certificate
PHP Tutorial HTML Colors PHP Examples Java Certificate
Java Tutorial Java Reference Java Examples C++ Certificate
C++ Tutorial AngularJS Reference XML Examples C# Certificate
jQuery Tutorial jQuery Reference jQuery Examples XML Certificate
FORUM ABOUT ACADEMY
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to
avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.
Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by [Link].