Skip to content

Commit

Permalink
Merge pull request #24 from ayuayue/master
Browse files Browse the repository at this point in the history
更正 ip2long 时,explode第一个参数由 ','为'.'
  • Loading branch information
colinlet authored Nov 3, 2020
2 parents 7905cad + b9b2bb5 commit 195f42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/03.PHP/QA.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ PHP 代码 => 启动 php 及 zend 引擎,加载注册拓展模块 => 对代码
```
124.205.30.150=2093817494

list($p1,$p2,$p3,$p4) = explode(',','124.205.30.150');
list($p1,$p2,$p3,$p4) = explode('.','124.205.30.150');

$realNum = $p1<<24+$p2<<16+$p3<<8+$p4;
```
Expand Down

0 comments on commit 195f42f

Please sign in to comment.