版本1.7 功能:加入爆炸步骤: 1)添加爆炸类:Explode 用不同直径的圆模拟爆炸: int[] diameter = {4, 7, 12, 18, 26, 32, 49, 30, 14, 6}; 加入live: private boolean live = true; 加入位置属性: int ...
分类:
其他好文 时间:
2016-05-25 15:13:35
阅读次数:
331
编码转换string mb_convert_encoding ( string $str , string $to_encoding [, mixed $from_encoding ] )iconv(); 字符串处理array explode(".", "fff.ff.f") 按指定字符切割stri ...
分类:
Web程序 时间:
2016-05-16 12:45:41
阅读次数:
179
今天在nginx部署项目,在浏览器输入http://127.0.0.2/index.php/system/category/?action=list 老是提示error nginx配置没有问题,下了其他应用,可以正常运行 查看了下index.php的代码 发现 $uriArr = explode(D ...
分类:
Web程序 时间:
2016-05-13 13:16:53
阅读次数:
167
Defuse the Bomb
Time Limit: 2 Seconds Memory Limit: 65536 KB
The bomb is about to explode! Please defuse it as soon as possible!
There is a display showing a number from 1 to 4 on the bomb...
分类:
其他好文 时间:
2016-05-13 01:03:53
阅读次数:
404
android 5.x 提供了3中过渡动画:
进入:一个进入的过渡(动画)决定activity中的所有的视图怎么进入屏幕
退出:一个退出的过渡(动画)决定一个activity中的所有视图怎么退出屏幕。
共享元素:一个共享元素过渡(动画)决定两个activities之间的过渡,怎么共享(它们)的视图
有以下进入和退出的过渡动画:
explode(分解)—— 进入/退出从屏幕中间移动视图;
slide(...
分类:
移动开发 时间:
2016-05-07 08:02:13
阅读次数:
889
$url_path = 'http://www.sina.com.cn/abc/de/fg.php?id=1'; $temp = pathinfo($url_path,PATHINFO_BASENAME); $temp = explode("?", $temp); $temp1 = substr($ ...
分类:
Web程序 时间:
2016-04-13 20:42:03
阅读次数:
164
正常情况下用php的mysql_query函数是不能批量执行多句CREATETABLE之类的语句的;而有些场景;比如说有一个sql备份文件、又或是程序初始化时创建数据表结构的时候需要批量执行文件中的sql语句;解决这个问题可以用explode函数按‘;‘号把sql语句拆成数组;再通过循环执行mysql_que..
分类:
数据库 时间:
2016-04-05 02:15:41
阅读次数:
198
正常情况下用php的mysql_query函数是不能批量执行多句CREATE TABLE之类的语句的; 而有些场景;比如说有一个sql备份文件、又或是程序初始化时创建数据表结构的时候需要批量执行文件中的sql语句; 解决这个问题可以用explode函数按';'号把sql语句拆成数组;再通过循环执行m ...
分类:
数据库 时间:
2016-04-05 00:26:51
阅读次数:
209
$request->action = lcfirst(implode(array_map( 'ucfirst', explode('-', strtolower($request->action)) ))); function __autoload($class) { $cls = strtolow ...
分类:
其他好文 时间:
2016-04-03 17:19:28
阅读次数:
646