Showing 7 of 2,041 result(s)
The replaceLast helper method is the logical opposite of the replaceFirst helper method. It is used to replace the last occurrence of a given $search string with the provided $replace string in the $subject string. All three parameters are...
The isAssoc helper method can be used to determine if a given $array is an associative array or not. The provided documentation for the isAssoc method states that an array is associative if it does not have sequential numeric keys beginning with...
The count method returns the total number of messages stored within the MessageBag instance. The count method exists to satisfy the requirements of PHP's Countable interface.The signature of the count method is: public function count();The...
The put method is used to add a new MessageBag implementation instance to the ViewErrorBag instance, supplied as the argument to the $bag parameter with some name determined by the $key argument.
The se_random_id tag may be used to generate a random element ID. By default generates an ID that is 16 characters long. Generated IDs always begin with the el prefix (which is factored into the final length). The minimum length this tag can...
Admittedly this post is less about the actual task of programming, and more about the behind-the-scenes workings of PHP's execution environment.
This method will convert the given $value to look like a traditional print title. This method essentially will transform the entire $value to its lower cased equivalent and then uppercase the first character of each word it finds. This method may...