Variadics in PHP



function test( &...$args){

    foreach( $args as $k){

        echo $k ;

    }

}

Woher weiss man wie die Parameter heißen?

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare