Metrics
0
Watch 91 Star 510 Fork 301

开源中国 / bullshit-codesMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
本仓库收集史上最坑爹的代码片段,欢迎大家通过 Fork+Pull Request 参与 spread retract

  • Java 52.3%
  • PHP 26.9%
  • C# 8.8%
  • JavaScript 8.8%
  • Go 0.9%
  • Other 2.3%
Clone or download
入职第一天.php 456 Bytes
Copy Edit Web IDE Raw Blame History
<?php
namespace store;
/*入职第一天 老板说先优化下网站卡顿, 然后发现了它*/
class Store
{
public function info($store_id){
$store_info = null;
$stores = Db::name('stores')->select();/* 2w + */
foreach ($stores as $skey => $store) {
if( $store_id == $store['store_id'] ){
$store_info = $store;
}
}
return $store_info;
}
}

Comment ( 16 )

You need to Sign in for post a comment

Help Search

Gitee_you_jiang_zheng_wen Zheng_wen_close