Are the named functions and their arguments randomly ordered in PHP? Itβs very difficult for me to remember what function is, and always come to the leadership. What do you do to remember them without turning to the manual every time?
a few examples:
array_map(callback, array) , but array_filter(array, callback) . When working with strings strstr() , strpos() and substr() does not have underscores, but str_replace() , str_pad() and str_split() . and in most cases the string is taken as the first argument, but in explode() string is the second argument.
source share