hoythan
V2EX  ›  PHP

PHP func_get_args 要怎么传递参数

  •  
  •   hoythan ·
    PRO
    · Mar 20, 2018 · 2553 views
    This topic created in 3158 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
    dic
    Mar 20, 2018 via Android❤️1
    1
    call_user_func_array
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   947 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:32 · PVG 06:32 · LAX 14:32 · JFK 17:32
    ♥ Do have faith in what you're doing.