摘要:
array_intersect() 函数用于比较两个(或更多个)数组的键值,并返回交集 array_intersect(array1,array2,array3...); <?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow 阅读全文
posted @ 2020-11-04 23:46
caibaotimes
阅读(478)
评论(0)
推荐(0)
摘要:
定义常量值先做判断 if(!defined('constant'))define('constant','value'); 阅读全文
posted @ 2020-11-04 00:15
caibaotimes
阅读(153)
评论(0)
推荐(0)
摘要:
laravel whereRaw 和 where(DB::raw('')) 用 where(DB::raw(''))的时候,结尾会被增加一个莫名其妙的 is null() 用toSql()发现的,而使用whereRaw则不会 $student=DB::table("info")->whereRaw( 阅读全文
posted @ 2020-11-04 00:13
caibaotimes
阅读(4772)
评论(0)
推荐(0)
摘要:
不能在表字段上执行空比较。在where中需要确保字段值不为null 阅读全文
posted @ 2020-11-04 00:10
caibaotimes
阅读(836)
评论(0)
推荐(0)