Showing 7 of 1,975 result(s)
The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural method.
The following examples highlight the basic usage of the replaceLast method. The results of the method call will appear above the call as a comment.
The signature of the addNamespace method is: The parameters of this method match the parameters of the loader's addNamespace method.
The signature of the getSelector method is: public function getSelector();
The signature of the getLocale method is: public function getLocale();
At some point in your PHP adventures, you have either seen, or written code like the following: The wrap method allows you to accomplish the same task with much cleaner, and clearer syntax.
The session function allows setting session values directly by passing in an array of key/value pairs. The following example demonstrates this: Setting single session values is also possible: