110male
V2EX  ›  问与答

PHP laravel,这什么写法?

  •  
  •   110male · Dec 15, 2017 · 1944 views
    This topic created in 3118 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   ·   5757 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 03:27 · PVG 11:27 · LAX 20:27 · JFK 23:27
    ♥ Do have faith in what you're doing.