110male
V2EX  ›  问与答

PHP laravel,这什么写法?

  •  
  •   110male · Dec 15, 2017 · 1916 views
    This topic created in 3096 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   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:27 · PVG 16:27 · LAX 01:27 · JFK 04:27
    ♥ Do have faith in what you're doing.