THE WORLD'S LARGEST WEB DEVELOPER SITE

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特质 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文件系统 PHP过滤器 PHP FTP PHP JSON PHP Libxml PHP邮件 PHP数学 PHP杂项 PHP MySQLi PHP网络 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 and constants, along with examples.


PHP Exam - Get Your Diploma!

W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 25 000 certificates already issued!

Get Your 证书 »

The HTML证书 documents your knowledge of HTML.

The CSS证书 documents your knowledge of advanced CSS.

The JavaScript 证书 documents your knowledge of JavaScript and HTML DOM.

The Python 证书 documents your knowledge of Python.

The jQuery证书 documents your knowledge of jQuery.

The SQL证书 documents your knowledge of SQL.

The PHP 证书 documents your knowledge of PHP and MySQL.

The XML 证书 documents your knowledge of XML, XML DOM and XSLT.

The Bootstrap 证书 documents your knowledge of the Bootstrap framework.




W3Schools is optimized for learning, testing, and training. 示例 might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2020 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.

W3Schools.com