Home > php教程 > php手册 > Learn PHP step by step

Learn PHP step by step

WBOY
Release: 2016-07-09 09:10:00
Original
988 people have browsed it

Started learning PHP, using a local server built by webmatrix (this is the easiest, but it also took a long time).

Speaking of it, webmatrix is ​​indeed simple enough. You only need to create a new empty website, and then you can start working in it. Note that 404 may be returned when running. This is because the main site does not have a default page. The default page can be entered under the website settings. Just enter the desired default page.

PHP is officially started

php scripts all end with

All variables must be preceded by a dollar sign (quite greedy for money): $ (it turns into ¥ under the Chinese input method)

Note that variables in PHP are also divided into global variables and local variables. What is easy to confuse with C is that variables after global assignment cannot be used inside the function.

To use global variables inside a function, you need to add the global keyword

Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template