Skip to content
Sunil Kushwaha edited this page Aug 21, 2015 · 24 revisions

Below is the quick reference for all function this library has.

String functions

str.htmlspecialchars()                      // Convert special characters to HTML entities

Array functions

arr.unique()                      // Get unique elements from one dimensional array
arr.has_duplicates()              // Returns True/False if array has duplicate element
arr.has_duplicates_assoc('phone') // Returns True/False if associative array has duplicate element based on key provided
arr.duplicates()                  // Returns object containing duplicate elements with their occurrences
arr.duplicates_assoc('phone')     // Returns object same as above but for associative array
Clone this wiki locally