Tutorials 参考 练习 Menu
Paid Courses

PHP 教程

PHP主页 PHP简介 PHP安装 PHP语法 PHP评论 PHP变量 PHP回声/打印 PHP数据类型 PHP字符串 PHP编号 PHP数学 PHP常量 PHP运算符 PHP If...Else...Elseif PHP开关 PHP循环 PHP函数 PHP数组 PHP超全局变量 PHP正则表达式

PHP 形式

PHP表单处理 PHP表单验证 需要PHP表格 PHP表单URL /电子邮件 PHP表格完成

PHP 高级

PHP日期和时间 PHP包含 PHP文件处理 PHP文件打开/读取 PHP文件创建/写入 PHP文件上传 PHP Cookies PHP会话 PHP过滤器 PHP过滤器 高级 PHP Callback Functions PHP JSON PHP异常

PHP OOP

PHP什么是OOP PHP类/对象 PHP构造函数 PHP析构函数 PHP访问修饰符 PHP继承 PHP常量 PHP抽象类 PHP Interfaces PHP特质 PHP静态方法 PHP静态属性 PHP Namespaces PHP Iterables

MySQL 数据库

MySQL数据库 MySQL连接 MySQL创建数据库 MySQL创建表 MySQL输入sert Data MySQL获取最后一个ID MySQL输入sert Multiple MySQL准备 MySQL选择 Data MySQL位置 MySQL排序依据 MySQL删除 Data MySQL更新 Data MySQL限制数据

PHP XML

PHP XML解析器 PHP SimpleXML解析器 PHP SimpleXML-获取 PHP XML扩展 PHP XML DOM

PHP - AJAX

AJAX简介 AJAX PHP AJAX数据库 AJAX XML AJAX实时搜索 AJAX投票

PHP 示例

PHP 示例 PHP编译器 PHP 测试 PHP 练习 PHP 证书

PHP 参考

PHP概述 PHP数组 PHP 日历 PHP日期 PHP目录 PHP错误 PHP Exception PHP文件系统 PHP过滤器 PHP FTP PHP JSON PHP Keywords PHP Libxml PHP邮件 PHP数学 PHP杂项 PHP MySQLi PHP网络 PHP Output Control PHP正则表达式 PHP SimpleXML PHP Stream PHP字符串 PHP变量处理 PHP XML解析器 PHP邮编 PHP时区

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.

PHP 7 is the latest stable release.

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>
来试试吧 »

Click on the "来试试吧" button to see how it works.


PHP 练习

Test Yourself With 练习

Exercise:

Insert the missing part of the code below to output "Hello World".

 "Hello World";



PHP 示例

Learn by examples! This tutorial supplements all explanations with clarifying examples.

See All PHP 示例


PHP 测试 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 测试!


PHP 参考

W3Schools' PHP reference contains different categories of all PHP functions, keywords and constants, along with examples.


Kickstart your career

Get certified by completing the course

Get certified w3schools CERTIFIED . 2021




W3Schools is optimized for learning and training. 示例 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, cookie and privacy policy.

Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.