Processing math: 100%

10 2019 档案

摘要:<?php class Car { private function __construct() { echo 'object create'; } private static $_object = null; public static function getInstance() { if ( 阅读全文
posted @ 2019-10-31 22:33 盘思动 阅读(343) 评论(0) 推荐(0) 编辑
摘要:function test3($i){ echo i.<br/>;if(i >= 0){ func = __FUNCTION__; // 外面函数名称变了,不用跟着变func(i - 1); } echoi . '<br/>'; } test3(3); 3 2 1 0 -1 -1 0 1 2 3 阅读全文
posted @ 2019-10-31 21:12 盘思动 阅读(136) 评论(0) 推荐(0) 编辑
摘要:Array( [title] => 推荐 [code] => 1) array(3) { [1]=> string(6) "推荐" [3]=> array(2) { // 这里出现很诡异的结果 ["title"]=> string(7) "奇闻2" ["code"]=> int(2) } [4]=> 阅读全文
posted @ 2019-10-31 20:32 盘思动 阅读(187) 评论(0) 推荐(0) 编辑
摘要:/usr/local/mysql/bin/mysqld_safe /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx 阅读全文
posted @ 2019-10-30 09:06 盘思动 阅读(283) 评论(0) 推荐(0) 编辑
摘要:User=D(User);User->query('select * from think_user where status=1'); $User->execute('update think_user set status=1 where id=1'); 阅读全文
posted @ 2019-10-22 13:40 盘思动 阅读(1628) 评论(0) 推荐(0) 编辑
摘要:update user_info set user_name = concat(user_name,'呵呵呵') where user_name = '哈哈哈'; 阅读全文
posted @ 2019-10-21 15:57 盘思动 阅读(7195) 评论(0) 推荐(0) 编辑
摘要:以decimal(18,0)为例:18是定点精度,0是小数位数。 decimal(a,b) a指定小数点左边和右边可以存储的十进制数字的最大个数,最大精度38。 b指定小数点右边可以存储的十进制数字的最大个数。小数位数必须是从 0 到 a之间的值。默认小数位数是 0。 阅读全文
posted @ 2019-10-15 15:19 盘思动 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:$_SERVER["SERVER_ADDR"] 当前运行脚本的服务器的ip地址 阅读全文
posted @ 2019-10-15 10:30 盘思动 阅读(2473) 评论(0) 推荐(0) 编辑
摘要:<pre>array(8) { [0] =&gt; int(3) [1] =&gt; int(3) [2] =&gt; int(3) [3] =&gt; int(3) [4] =&gt; int(2) [5] =&gt; int(2) [6] =&gt; int(2) [7] =&gt; int(2 阅读全文
posted @ 2019-10-10 17:42 盘思动 阅读(423) 评论(0) 推荐(0) 编辑
摘要:banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) 阅读全文
posted @ 2019-10-10 15:04 盘思动 阅读(577) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示