|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-30 23:58 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: Scripting Engine problem
[2020-11-23 15:40 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2020-11-23 15:40 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 10:00:01 2025 UTC |
Description: ------------ It would be nice, if you can use some mathematical sets in if conditions. This would help to filter input values like integers, string and floats. For example if you'll check if an input value within your range: Normal representation -> if ($input >= 0 && $input <= 2) Math. Set representation -> if ($input === [0; 2]) You can use braces (but they are used in PHP) to represent sets of string or numbers like -> colors === {'red', 'blue', 'yellow'} There is also an international standard (ISO 31-11) that defines sets (http://en.wikipedia.org/wiki/ISO_31-11#Sets)