-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdebug.php
39 lines (33 loc) · 949 Bytes
/
debug.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Created by PhpStorm.
* Author: zwt
* Date: 2018/1/19
* Time: 21:10
* Email: [email protected]
*/
//debug 运行测试文件
//获取签名signature be25d988b2156d1889d65b9010a37b29
//echo md5("app_id=69920173&app_secret=SVRZKjiXaLnaIGaqCqjsCloazWRfOUdl&device_id=668668&rand_str=CJbHN4oIRT2L×tamp=1514736000");
// 图片转base64
//$img = file_get_contents("./tim.png");
//$img_base64 = base64_encode($img);
//echo $img_base64;
//广告位删除前判断下有无广告
//$can = '';
//$cannot = '';
//$ids = explode(',', '1,2,3');
//$apids = ['1','3','4','5','6'];
//foreach ($ids as &$v) {
// if (in_array($v, $apids)) {
// // 拼接不能删除的
// $cannot .= $v . ',';
// } else {
// // 拼接可以删除的
// $can .= $v . ',';
// }
//}
//var_dump(array_filter(explode(',', $can)));
//$str='aaaaabbbbbbbccccc';
//$match = substr($str,strpos($str,',')+1);
//var_dump($match);