1. If a method c++an be static, declare it static. Speed improvement is by a factor of 4. 如果一个方法可静态化,就对它做静态声明。速率可提升至4倍。 2. echo is faster than print. echo 比 print 快。 3. Use echos multiple parameters instead o
你见过ORDER BY -title DESC这种用法吗? 在查看网站SQL语句时,发现这样一样语句,ORDER BY -title DESC。 第一反应是不是写错了那个-号是什么意思? 检测了下,两者结果是不一样的。 假定title字段有下面几个值:旅游1线,20路,112路,113路 title ASC得出