|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-13 22:24 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 18:00:01 2025 UTC |
Description: ------------ Please add new keyword "in" to improve readability of a PHP code that is an inline alias to array_search function. For example: if (array_search($item, $array)) { ... } would be: if ($item in $array) { ... } Another example: if (array_search($item, array('first', 'second', 'third'))) { ... } would be: if ($item in array('first', 'second', 'third')) { ... } or ideally: if ($item in {'first', 'second', 'third'}) { ... }