ID: 37088 User updated by: bugzilla at yakasha dot net Reported By: bugzilla at yakasha dot net Status: Wont fix Bug Type: Feature/Change Request Operating System: * PHP Version: * New Comment:
Wow. What an amazingly helpful response. You're great. Yes, yes, we should all just change our ides to cope with php's limitations and retardedness. And whenever php has a problem in a certain area, we should just use exec() to run a perl script right? Or maybe, just maybe, you could accept suggestions on how to improve the language, think about those suggestions, and discuss with the suggestor as to why you would not want to do something intelligent to make php better. Previous Comments: ------------------------------------------------------------------------ [2006-04-14 20:27:09] [EMAIL PROTECTED] Use a decent IDE then. ------------------------------------------------------------------------ [2006-04-14 19:34:51] bugzilla at yakasha dot net Description: ------------ Please universalize the argument ordering for search functions like strstr & in_array. It's annoying to have to constantly second guess myself, "Which uses needle/haystack and which is haystack/needle" Reproduce code: --------------- <?php $needle = "what"; $haystack = "Is what you're looking for in here?"; $stringFound = strstr($needle, $haystack); $haystack = explode(" ", $haystack); $arrayFound = in_array($needle, $haystack); echo "String: " . ($stringFound ? "found\n" : "not found\n"); echo "Array: " . ($arrayFound ? "found\n" : "not found\n"); ?> Expected result: ---------------- String: found Array: found Actual result: -------------- String: not found Array: found ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37088&edit=1