note 126117 added to function.return

From: Date: Fri, 28 May 2021 11:42:29 +0000
Subject: note 126117 added to function.return
Groups: php.notes 
Request: Send a blank email to php-notes+get-216440@lists.php.net to get a copy of this message
Please note that return without a return arguments: returns NULL. <?php function test(){ return; } var_dump(test()); exit(); ?> Outputs: ``` NULL ``` ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 2a01:c23:6459:1500:18b1:c546:5363:f21d) ---- Manual Page -- https://php.net/manual/en/function.return.php Edit -- https://main.php.net/note/edit/126117 Del: integrated -- https://main.php.net/note/delete/126117/integrated Del: useless -- https://main.php.net/note/delete/126117/useless Del: bad code -- https://main.php.net/note/delete/126117/bad+code Del: spam -- https://main.php.net/note/delete/126117/spam Del: non-english -- https://main.php.net/note/delete/126117/non-english Del: in docs -- https://main.php.net/note/delete/126117/in+docs Del: other reasons-- https://main.php.net/note/delete/126117 Reject -- https://main.php.net/note/reject/126117 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216440) next »