10 2019 档案
摘要:<?php class Car { private function __construct() { echo 'object create'; } private static $_object = null; public static function getInstance() { if (
阅读全文
摘要: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
阅读全文
摘要:Array( [title] => 推荐 [code] => 1) array(3) { [1]=> string(6) "推荐" [3]=> array(2) { // 这里出现很诡异的结果 ["title"]=> string(7) "奇闻2" ["code"]=> int(2) } [4]=>
阅读全文
摘要:/usr/local/mysql/bin/mysqld_safe /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx
阅读全文
摘要:User=D(′User′);User->query('select * from think_user where status=1'); $User->execute('update think_user set status=1 where id=1');
阅读全文
摘要:update user_info set user_name = concat(user_name,'呵呵呵') where user_name = '哈哈哈';
阅读全文
摘要:以decimal(18,0)为例:18是定点精度,0是小数位数。 decimal(a,b) a指定小数点左边和右边可以存储的十进制数字的最大个数,最大精度38。 b指定小数点右边可以存储的十进制数字的最大个数。小数位数必须是从 0 到 a之间的值。默认小数位数是 0。
阅读全文
摘要:$_SERVER["SERVER_ADDR"] 当前运行脚本的服务器的ip地址
阅读全文
摘要:<pre>array(8) { [0] => int(3) [1] => int(3) [2] => int(3) [3] => int(3) [4] => int(2) [5] => int(2) [6] => int(2) [7] => int(2
阅读全文
摘要:banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear )
阅读全文