Méthode |
Description |
|
__construct ( Silex\Application $app ) |
|
|
jsonDecode ( string $string ) : array |
JSON decodes a variable. Twig has a built-in json_encode filter, but no built-in
function to JSON decode a string. This functionality remedies that. |
|
localeDateTime ( string | DateTime $dateTime, string $format = '%B %e, %Y %H:%M' ) : string |
Returns the date time in a particular format. Takes the locale into
account. |
|
pregReplace ( string $str, string $pattern, string $replacement = '', integer $limit ) : string |
Perform a regular expression search and replace on the given string. |
|
safeString ( string $str, boolean $strict = false, string $extrachars = '' ) : string |
Return a 'safe string' version of a given string. |
|
slug ( string $str ) : string |
Return the 'sluggified' version of a string. |
|
testJson ( string $string ) : boolean |
Test whether a passed string contains valid JSON. |
|