squallcx
V2EX  ›  PHP

paris/idioms 将资料放到变数以后要如何资料查找?

  •  
  •   squallcx · May 4, 2015 · 2488 views
    This topic created in 4065 days ago, the information mentioned may be changed or developed.

    要取得classid的name,原本用两次回圈的方法,但觉得没效率
    如何只读两次资料库,且不是用两次回圈来取值
    1 replies    2015-05-04 18:27:26 +08:00
    yangmls
        1
    yangmls  
       May 4, 2015
    变数 -> 变量?
    回圈 -> 循环?
    资料库 -> 数据库?

    参考 laravel 的 array_first 吧,更优雅的实现。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.