搭建PHP开发环境首先第一步要
下载开发环境 wampserver
下载sublime text 2
sublime使用技巧
1:安装漂亮的编程字体
http://pan.baidu.com/s/1xMex9 下载"程序编写字体 – Yahei Consolas Hybrid",
双击安装
2:解压sublime到你的程序目录,如D:/programe files/
3:ctrl+b打开浏览器,如果你已经安装apache,nginx等,并假设你的www目录为D:\\www\\
编辑sublime Text/Data/Packages/User/open_broswer.py
url_map = {
'D:\\www\\' : 'http://localhost/',
}
[注意] D:\\www\\应为你的localhost指向的真实目录
然后!!
点击-->Preferences->Key Bindings->User
在出现的界面中,加入如下内容(如果已经有就不用再加了):
[
{ "keys": ["ctrl+b"], "command": "open_browser" }
]
4:安装PHP语法提示(可以到学PHP时配置此步)
工具栏:Preferences->Package Settings->SublimeLinter->Settings - User
{"sublimelinter": true,
"sublimelinter_executable_map":
{
"php":"D:\\amp\\php\\php.exe" #把左边的地址替换为你实际的php.exe的地址
}
}
4:sublime的快捷键
ctrl+l 选择整行(按住-继续选择下行)
ctrl+kk 从光标处删除至行尾
ctrl+shift+k 删除整行
ctrl+shift+d 复制光标所在整行,插入在该行之前
ctrl+j 合并行(已选择需要合并的多行时)
ctrl+ku 改为大写
ctrl+kl 改为小写
ctrl+kl 改为小写
ctrl+d 选词(按住-继续选择下个相同的字符串)
ctrl+m 光标移动至括号内开始或结束的位置
ctrl+shift+m 选择括号内的内容(按住-继续选择父括号)
ctrl+/ 注释整行(如已选择内容,同“ctrl+shift+/”效果)
ctrl+shift+/ 注释已选择内容
ctrl+space 自动完成(win与系统快捷键冲突,需修改)
ctrl+z 撤销
ctrl+y 恢复撤销
ctrl+shift+v 粘贴并自动缩进(其它兄弟写的,实测win系统自动缩进无效)
ctrl+m 光标跳至对应的括号
alt+. 闭合当前标签
ctrl+shift+a 选择光标位置父标签对儿
ctrl+shift+[折叠代码
ctrl+shift+] 展开代码
ctrl+kt 折叠属性
ctrl+k0 展开所有
ctrl+u 软撤销
ctrl+t 词互换
ctrl+enter 插入行后
ctrl+shift enter 插入行前
ctrl+k backspace 从光标处删除至行首
ctrl+shift+up 与上行互换
ctrl+shift+down 与下行互换
shift+tab 去除缩进
tab 缩进
F9 行排序(按a-z)
以上就是搭建PHP开发环境的全部介绍,希望大家喜欢。

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.

In PHP, use the clone keyword to create a copy of the object and customize the cloning behavior through the \_\_clone magic method. 1. Use the clone keyword to make a shallow copy, cloning the object's properties but not the object's properties. 2. The \_\_clone method can deeply copy nested objects to avoid shallow copying problems. 3. Pay attention to avoid circular references and performance problems in cloning, and optimize cloning operations to improve efficiency.

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use