110male
V2EX  ›  问与答

PHP laravel,这什么写法?

  •  
  •   110male · Dec 15, 2017 · 2199 views
    This topic created in 3277 days ago, the information mentioned may be changed or developed.

    $where[] = [function($query){ $query->whereIn('xxx', [1,2,5,6]); }]; 这种写法是什么意思?[function]

    2 replies  •  2017-12-16 13:03:11 +08:00
    touch
    touch
    Dec 15, 2017
    1
    传递一个闭包
    110male
    110male
    OP
    Dec 16, 2017
    2
    有什么资料没?我学习一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   903 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:57 · PVG 05:57 · LAX 13:57 · JFK 16:57
    ♥ Do have faith in what you're doing.