110male
V2EX  ›  问与答

PHP laravel,这什么写法?

  •  
  •   110male · Dec 15, 2017 · 1905 views
    This topic created in 3083 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
        1
    touch  
       Dec 15, 2017
    传递一个闭包
    110male
        2
    110male  
    OP
       Dec 16, 2017
    有什么资料没?我学习一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1385 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 36ms · UTC 23:56 · PVG 07:56 · LAX 16:56 · JFK 19:56
    ♥ Do have faith in what you're doing.