PHP 常用资源
常用资源
常用扩展
好文
优秀的类库
判断是否为空
+--------------+-----------+---------+-----------+---------+--------+
| 真值表 | gettype() | empty() | is_null() | isset() | (bool) |
+--------------+-----------+---------+-----------+---------+--------+
| $x = "" | string | true | false | true | false |
| $x=null | NULL | true | true | false | false |
| var $x | NULL | true | true | false | false |
| $x = array() | array | true | false | true | false |
| $x = false | boolean | true | false | true | false |
| $x = 15 | integer | false | false | true | true |
| $x = 1 | integer | false | false | true | true |
| $x = 0 | integer | true | false | true | false |
| $x = -1 | integer | false | false | true | true |
| $x = '15' | string | false | false | true | true |
| $x = '1' | string | false | false | true | true |
| $x = '0' | string | true | false | true | false |
| $x = '-1' | string | false | false | true | true |
| $x = 'foo' | string | false | false | true | true |
| $x = 'true' | string | false | false | true | true |
| $x = 'false' | string | false | false | true | true |
+--------------+-----------+---------+-----------+---------+--------+
常用命令
修改phpunit内存限制
phpunit -d memory_limit=512M
PHPStorm 常用快捷键
-
Quick Command
Command + Shift + A
-
Quick File
Command + Shift + O
-
Quick Class
Command + O
-
Quick Symbol
Command + Option + O