You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| format(`string` format, `mixed` ...inputs): `string`| Formats a string using the [sprintf](https://www.php.net/manual/en/function.sprintf.php) syntax |
49
-
| trim(`string` input): `string`| Trims whitespaces from a string |
50
-
| capitalize(`string` input): `string`| Makes a string's first character uppercase |
51
-
| toLowerCase(`string` input): `string`| Makes a string lowercase |
52
-
| search(`string` input, `int` offset, `?int` length = null): `string`| Returns part of a string |
53
-
| toUpperCase(`string` input): `string`| Makes a string uppercase |
54
-
| formatNumber(`float` num, `int` decimals = 0, `?string` decimal_separator = ".", `?string` thousands_separator = ","): `string`| Formats a number with grouped thousands |
55
-
| indexOf(`string` haystack, `string` needle, `int` offset = 0): `int`|`false` | Finds the position of the first occurrence of a substring in a string |
56
-
| replace(`string` search, `string` replace, `string` input): `string`| Replaces the `search` values in the string by the `replace` |
57
-
| stripHtml(`string` string, `array`|`string`|`null` allowed_tags = null): `string`| Strips HTML and PHP tags from a string |
| capitalizeWords(`string` string, `string` separators = " \t\r\n\f\v"): `string`| Uppercase’s the first character of each word in a string |
61
-
| removeWhitespaces(`string` string, `string` characters = " \n\r\t\v\x00"): `string`| Strips whitespace (or other characters) from the end of a string |
62
-
| splitIntoArray(`string` separator, `string` string): `array`| Splits a string by a string |
63
-
| fileName(`string` path): `string`| Extracts the file name from the path name |
64
-
| dateTime(`string` dateTime, `string` format, `string` timezone = 'UTC'): `date`| Creates a date object from a formatted date |
65
-
| formatDate(`date` dateTime, `string` format): `string`| Transforms a date object into a formatted date string |
66
-
| now(`string` timezone): `string`| Returns a new \DateTime object with the given timezone |
67
-
| convertCharCode(`string` text, `string` sourceCharCode, `string` destinationCharCode): `string`| Converts a string from one character encoding to another |
68
-
| asFloat(`string` value): `string`| Converts the value into a float number |
69
-
| asInteger(`string` value): `string`| Converts the value to an integer |
70
-
| asString(`string` value): `string`| Converts the value into a string |
71
-
| truncate(`string` input, `int` limit): `string`| Truncates a value and adds "…" at the end of it |
| format(`string` format, `mixed` ...inputs): `string`| Formats a string using the [sprintf](https://www.php.net/manual/en/function.sprintf.php) syntax |
49
+
| trim(`string` input): `string`| Trims whitespaces from a string |
50
+
| capitalize(`string` input): `string`| Makes a string's first character uppercase |
51
+
| toLowerCase(`string` input): `string`| Makes a string lowercase |
52
+
| search(`string` input, `int` offset, `?int` length = null): `string`| Returns part of a string |
53
+
| toUpperCase(`string` input): `string`| Makes a string uppercase |
54
+
| formatNumber(`float` num, `int` decimals = 0, `?string` decimal_separator = ".", `?string` thousands_separator = ","): `string`| Formats a number with grouped thousands |
55
+
| indexOf(`string` haystack, `string` needle, `int` offset = 0): `int`|`false` | Finds the position of the first occurrence of a substring in a string |
56
+
| replace(`string` search, `string` replace, `string` input): `string`| Replaces the `search` values in the string by the `replace` |
57
+
| stripHtml(`string` string, `array`|`string`|`null` allowed_tags = null): `string`| Strips HTML and PHP tags from a string |
| capitalizeWords(`string` string, `string` separators = " \t\r\n\f\v"): `string`| Uppercase’s the first character of each word in a string |
61
+
| removeWhitespaces(`string` string, `string` characters = " \n\r\t\v\x00"): `string`| Strips whitespace (or other characters) from the end of a string |
62
+
| splitIntoArray(`string` separator, `string` string): `array`| Splits a string by a string |
63
+
| fileName(`string` path): `string`| Extracts the file name from the path name |
64
+
| dateTime(`string` dateTime, `string` format, `string` timezone = 'UTC'): `date`| Creates a date object from a formatted date |
65
+
| formatDate(`date` dateTime, `string` format): `string`| Transforms a date object into a formatted date string |
66
+
| now(`string` timezone): `string`| Returns a new \DateTime object with the given timezone |
67
+
| convertCharCode(`string` text, `string` sourceCharCode, `string` destinationCharCode): `string`| Converts a string from one character encoding to another |
68
+
| asFloat(`string` value): `string`| Converts the value into a float number |
69
+
| asInteger(`string` value): `string`| Converts the value to an integer |
70
+
| asString(`string` value): `string`| Converts the value into a string |
71
+
| truncate(`string` input, `int` limit): `string`| Truncates the value. If the limit is 10 and the input goes above that limit, 9 characters will be kept and `…` will be added at the end. |
<td>Truncates a valueand adds “…” at the end of it</td>
570
+
<td>Truncates the value. If the limit is 10 and the input goes above that limit, 9 characters will be kept and <code>…</code> will be added at the end.</td>
0 commit comments