> > ATM, in_array() takes 2 args and 1 parameter. Adding 1 more > > wouldn't hurt, doesn't break BC, and provides some added > > usefulness. > > And slows down the inner loop of searching. > > > IMHO, this would be a handy feature, and if it > > were added I can't imagine having to extend in_array any > > further. Does 'please' help? :) > > Can't imagine? Look in the archives. One of the proposals included > having an option to tell in_array() to move the internal array pointer > to the found element.
Is that even slower than that long moment when you need to manually create an array with the correct casing, strip filepaths, and then do a case-insensitive string comparison? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php