hoythan
V2EX  ›  PHP

PHP func_get_args 要怎么传递参数

  •  
  •   hoythan · Mar 20, 2018 · 2481 views
    This topic created in 3122 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   ·   Privacy   ·   Solana   ·   2734 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:55 · PVG 14:55 · LAX 23:55 · JFK 02:55
    ♥ Do have faith in what you're doing.