PHP基础(002)---特殊字符和开发工具
PHP的使用细节:
- PHP5 内置标准扩展库(如XML扩展库等);在PECL中有大量的PHP扩展库,这些扩展库需要单独下载;
- PHP扩展库的DLL文件都具有php_前缀;
- PHP的配置文件是: php.ini ;
PHP的开发工具:
- Editplus;
-
Adobe Dreamweaver:商业版;
-
Delphi for PHP;
- ZEND Studio; ---推荐使用
- NuSphere PhpED;
-
Eclipse with PDT:免费 ---推荐使用
-
Sublime Text:可免费使用
-
Coda:商业版,针对Mac用户
-
NetBeans:免费
-
PHP Storm:商业版
-
Aptana Studio:免费
-
PhpEd:商业版
-
Komodo IDE/Edit:IDE为商业版,Edit可免费使用
- Notepad++
- PHPEdit
- 略...
PHP在windows下的集成开发环境:( 在安装下面的环境时,请确保在你的PC安装前里面没有相冲突的软件,或关闭有相同线程的端口然后再安装;另外还可以Control Panel\All Control Panel Items\Programs and Features查看IIS及是否有冲突的软件,如果要查看Apache和MYsql是否启动?可用“services.msc” 检查。)
- EasyPHP
- Appserv
- XAMPP
- WAMP
- PHPStudy
PHP的标记风格:有4种
- <?php echo "hello world!"; ?> ---xml风格(推荐使用)
- <script language="php"> echo 'hello world'; </script> ---脚本风格
- <? echo 'hello world'; ?> ---简短风格
- <% echo 'hello world'; %> ---ASP风格
PHP 其它内容:
- PHP 注释 (单行[ // ] ; 多行[ /* ... */ ]
- 变量标识符[$] , 以$开头 ---美元符
- 单引号['] ---普通字符
- 双引号["] ---可包含变量
- 界定符[ <<< ]
- 转义符[\]
- 引用符[ & ] ---如变量引用赋值,或是函数引用参数等
- 字符串运算符[ . ]
- 错误控制运算符[ @ ]
- 换行符[ <br/> ],[ \n ]
- 回车符[ \r ]
- Tab字符[ \t ]
- 预排版标记[<pre>...</pre>]
- 略...
预排版标记示例:
1 <?php 2 $arr = array("fe","a","b","c",3,6,97); 3 echo "<pre>"; //预排版标记 4 var_dump($arr); 5 //echo "</pre>"; 6 ?>
output:
array(7) {
[0]=>
string(2) "fe"
[1]=>
string(1) "a"
[2]=>
string(1) "b"
[3]=>
string(1) "c"
[4]=>
int(3)
[5]=>
int(6)
[6]=>
int(97)
}
浙公网安备 33010602011771号