Xunsearch安装
安装库
yum -y install make gcc gcc-c++ libtool autoconf automake
安装软件(先下载软件包,解压到单独目录)
- 添加到开机启动命令
vi /etc/rc.local
在文件最后加一句cd /software/xunsearch ; bin/xs-ctl.sh restart
安装库
yum -y install make gcc gcc-c++ libtool autoconf automake
安装软件(先下载软件包,解压到单独目录)
vi /etc/rc.local
在文件最后加一句cd /software/xunsearch ; bin/xs-ctl.sh restart
基本的(expr1) ? (expr2) : (expr3)
就不说了。?:
左边表达式成立就返回左边,不成立,返回右边??
相当于:isset(expr1) ? expr1 : expr2
也就是说
??
只是说明如果左侧设置了并且不为null才返回左侧,如果左侧设置了但是为空字符串,也同样返回左侧的空字符串。
官方文档也有介绍:http://www.yiichina.com/doc/guide/2.0/structure-assets#bower-npm-assets
iziToast
composer require bower-asset/izitoast
或者添加composer.json
然后 update:"bower-asset/izitoast": "^1.1"
,安装之后大概目录结构如下:
|
|
无符号的最大值就是二进制最大位数锁代表的数值
类型 | 有符号 | 无符号 | 存储大小 |
---|---|---|---|
int | -2^31 (-2,147,483,648) 到 2^31 – 1 (2,147,483,647) | 0到4294967295 (2^32) | 4字节(也就是32位) |
bigint | -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) | 0到18446744073709551615 (2^64) | 8字节 |
mediumint | -2^23 (-8388608) 到 2^23-1 (8388607) | 0到16777215 (2^24) | 3字节 |
smallint | -2^15 (-32,768) 到 2^15 – 1 (32,767) | 0到65535 (2^16) | 2字节 |
tinyint | -128 到 127 | 0到255 (2^8) | 1字节 |
int(10),括号里的这个10 所代表的含义:10是一个显示宽度,和当前int大小没有任何关系,这个10是没有任何操作的,除非int的属性选择为UNSIGNED ZEROFILL
,即填充0
,此时也不可能有负数,当位数(长度)不够括号里的数值的时候,会自动补0,超过没有操作。
将数组转为字符串,serialize
比json_encode
效率高很多。