PHP Classes

File: function_list.txt

Recommend this page to a friend!
  Classes of Jeff Williams   Easy PHP Validation   function_list.txt   Download  
File: function_list.txt
Role: Documentation
Content type: text/plain
Description: List of class functions
Class: Easy PHP Validation
Validate and fetch request and other value types.
Author: By
Last change: Updated
Date: 3 years ago
Size: 2,981 bytes
 

Contents

Class file image Download
beginsWith($string, $find, $caseSensitive = true) changeArrayKeyCaseRecursive($array, $case = CASE_LOWER) charAt($string, $position) checkIPRange($ip, $range) checkLength($value, $maxLength, $minLength = 0) checkPathEndingSlash($path) compare($value1, $value2, $caseSensitive = false) compareValues($string, $caseSensitive, $find) contains($string, $find, $caseSensitive = true) containsValues($string, $caseSensitive, $find) countCharacters($string) countParagraphs($string) countSentences($string) countWords($string) encodeHTML($value, $encoding = 'UTF-8', $dateFormat = 'm/d/Y') encodeURL($value, $raw = false, $dateFormat = 'Y-m-d') endsWith($string, $find, $caseSensitive = true) formatPhoneNumber($numbers) formatSSN($numbers) formatTitleCase($title) formatZipCode($numbers) fullName($first, $middle, $last) generateRandomString($size = 30, $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') getArrayElementValue($array, $key, $datatype = '') getBooleanValue($value, $includeTrueValue = null, $includeFalseValue = null) getClientIPAddress() getCookieValue($name, $default = '') getCreditCardType($cardnumber) getCurrentPageName($lowercase = false, $extension = true) getCurrentPageURL($lowercase = false) getCurrentSite($lowercase = false) getDefaultOnEmpty($value, $default) getFileSystemSafeString($string, $lowercase = true, $maxlength = 100, $delimiter = '_') getFloatValue($string) getFormGet($name, $default = '') getFormPost($name, $default = '') getFormValue($name, $default = '', $method = INPUT_REQUEST) getMissingArrayKeys($array, $required_keys, $keys_case = false) getRequestValue($name, $default = '') getSessionValue($name, $default = '') getUniqueChars($string, $returnAsArray = true) getValue($name, $default = '') hasArrayKeys($array, $required_keys, $keys_case = false) hashAny($mixed) hasValue($value) isAlpha($value, $allow = '') isAlphaNumeric($value) isEmail($email) isEmpty($value) isFloat($number) isInternetURL($value) isIPAddress($value) isNumber($number) isPhoneNumber($value) isSSN($ssn, $strict = false) isStateAbbreviation($value) isTooLong($value, $maximumLength) isTooShort($value, $minimumLength) isUnsignedNumber($number) isValidCreditCardNumber($cardnumber) isValidJSON($string) isValidXML($string) isZipCode($value) left($string, $length) ordinal($number) replaceLast($search, $replace, $subject) right($string, $length) sanitize($input) startsWith($string, $find, $caseSensitive = true) stripExcessWhitespace($string) stripNonAlpha($string) stripNonAlphaHyphenSpaces($string) stripNonAlphaNumeric($string) stripNonAlphaNumericHyphenSpaces($string) stripNonAlphaNumericSpaces($string) stripNonNumeric($string) trim($value, $mask = ' ') truncate($string, $length, $dots = '') truncateDecimal($float, $precision = 0) validatePassword($password, $confirm, $email = '', $username = '', $forceUpperLower = false, $returnArray = false)