hoythan
V2EX  ›  PHP

PHP func_get_args 要怎么传递参数

  •  
  •   hoythan · Mar 20, 2018 · 2293 views
    This topic created in 2987 days ago, the information mentioned may be changed or developed.

    例如

        function get_xxx(){
            return func_get_args();
        }
    
        function the_xxx(){
            // 这一步应该怎么做,才能吧参数原样传递给 get_xxx 函数
            print_r(get_xxx());
        }
    
    
        the_xxx(1,2,3,4,5)
    
    dic
        1
    dic  
       Mar 20, 2018 via Android   ❤️ 1
    call_user_func_array
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2723 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 10:43 · PVG 18:43 · LAX 03:43 · JFK 06:43
    ♥ Do have faith in what you're doing.