|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-01-11 23:13 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 15:00:02 2025 UTC |
Description: ------------ Very often when writing a method, there is a conditional block, say for security purposes, where a special return case is required. The code would look something like this: if($this->someCheck($foo)) { return $bar; } // continue method It would be great if we could just write a line such as: returnIf($condition,$return); // continue method This is a nice to have, but would improve code readability.