30秒学会 PHP 片段 – decapitalize
Decapitalizes the first letter of a string. Decapitalizes the first letter of the string and then ad...
Decapitalizes the first letter of a string. Decapitalizes the first letter of the string and then ad...
Returns a shortened string. Use mb_strlen(), mb_substr() and rtrim() to shorten a string to a give n...
Removes elements from an array for which the given function returns false. Use array_filter() to fin...
Returns the least common multiple of two or more numbers. Use the greatest common divisor (GCD) form...
Sorts a collection of arrays or objects by key. Uses sort() on the provided array to sort the array ...
Call a function only once. Return a function, which only calls the provided function, $function, if ...
Mutates the original array to filter out the values specified. Use array_values() and array_diff() t...
Returns number of vowels in the provided string. Use a regular expression to count the number of vow...