search

Home  >  Q&A  >  body text

Closure query is so troublesome, but it seems that the array method is simple, so why use closure?

For example, the array method can be written as

$where = [

'id'=>['gt',1003],

'salary'=> ['gt',3000]

]

李蓦然李蓦然2311 days ago1462

reply all(2)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2018-08-01 12:15:22

    Code writing and process Everyone has their own habits. Of course, it is possible that your habits are bad. As long as it does not affect the execution efficiency or the reading of secondary development, it is fine. Don’t worry about it

    reply
    0
  • 勇敢的心

    勇敢的心2018-08-01 09:30:13

    Everyone has their own strengths and needs, haha

    reply
    0
  • Cancelreply