[PHP-NOTES] note 130258 added to function.func-get-args

[email protected] ("[email protected]")
Newsgroups php.notes
Message-ID <[email protected]>
Note: this function returns current values of variables instead passed to function

<?php
function test(int $v) {
        $v = 2;
        var_export(func_get_args());
}

test(1); // display array('v' => 2)
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 51.159.226.158)
----
Manual Page -- https://php.net/manual/en/function.func-get-args.php
Edit        -- https://main.php.net/note/edit/130258
Del: integrated  -- https://main.php.net/note/delete/130258/integrated
Del: useless     -- https://main.php.net/note/delete/130258/useless
Del: bad code    -- https://main.php.net/note/delete/130258/bad+code
Del: spam        -- https://main.php.net/note/delete/130258/spam
Del: non-english -- https://main.php.net/note/delete/130258/non-english
Del: in docs     -- https://main.php.net/note/delete/130258/in+docs
Del: other reasons-- https://main.php.net/note/delete/130258
Reject      -- https://main.php.net/note/reject/130258
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.