Class String1
Located at easycore/Ehex.php
public static
mixed
|
#
compressMD5( $md5_hash_str )
Return 22-char compressed version of 32-char hex string (eg from PHP md5). adn URL Safe |
public static
mixed
|
#
compressHash( $hash )
If you now want a function to compress your hexadecimal MD5 values using URL safe characters, you can use this: |
public static
mixed
|
|
public static
string
|
#
base64_to_base64UrlSafe( $base64 )
If you need Base-64 encoding with the URL and filename safe alphabet , you can use these functions: |
public static
string
|
|
public static
string
|
#
base16_to_base64( $base16 )
Here are two conversion functions for Base-16 to Base-64 conversion and the inverse Base-64 to Base-16 for arbitrary input lengths: |
public static
string
|
|
public static
null|string|string[]
|
|
public static
null|string|string[]
|
|
public static
string
|
|
public static
|
|
public static
|
|
public static
string
|
#
stringBetween( $haystack, $start, $end )
Returns the first string there is between the strings from the parameter start and end. stringBetween('This is a [custom] string', '[', ']'); // custom |
public static
string
|
|
public static
string
|
|
public static
mixed
|
|
public static
string
|
|
public static
mixed
|
|
public static
|
|
public static
|
|
public static
|
|
public static
float|integer
|
|
public static
string
|
#
escapeQuotes( string $value = 'ade is a "fine" Boy', boolean $toJavascript = false )
remove trailing quote |
public static
string
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
string
|
|
public static
|
|
public static
|
|
public static
mixed|null|string|string[]
|
#
translateLanguage( $text, string $fromLanguage = 'nl', string $toLanguage = 'en', boolean $cache = false, boolean $returnDefaultOnFailed = true )
Translate Text |
public static
array
|
#
translateLanguageKeyValue( array $textKeyValueList = [], string $fromLanguage = 'en', string $toLanguage = 'en', boolean $cache = true, boolean $returnDefaultOnFailed = true )
Translate Text and Cached It |
public static
boolean|mixed
|
#
translateLanguageKeyAndManyValues( array $textKeyValueList = [], string $fromLanguage = 'en', string $toLanguage = 'en', boolean $cache = true, string $defaultKey = 'default' )
Translate Text and Cached it |
public static
null|string|string[]
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
boolean
|
|
public static
boolean|string
|
|
public static
boolean|string
|
|
public static
boolean|string
|
|
public static
string
|
#
getSomeText( $text, string $length = '20', string $ellipsis = '...' )
Get Small Text Out of Large Text |
public static
boolean
|
|
public static
boolean|string
|
|
public static
boolean
|
|
public static
|
|
public static
null|string|string[]
|
|
public static
boolean|string
|
|
public static
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
string
|
|
public static
boolean|mixed
|
|
public static
mixed|null
|
|
public static
string
|
|
public static
mixed|string
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|