Function __global->jlex__strlen_sort
Definitions
sources/webstandards_js_lex.php
- Helper function for usort to sort a list by string length.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $a | string | No | No | required parameter | N/A | N/A | The first string to compare |
| $b | string | No | No | required parameter | N/A | N/A | The second string to compare |
Returns
- The comparison result
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper function for usort to sort a list by string length.
*
* @param string $a The first string to compare
* @param string $b The second string to compare
* @return integer The comparison result
*/
function jlex__strlen_sort(string $a, string $b) : int
* Helper function for usort to sort a list by string length.
*
* @param string $a The first string to compare
* @param string $b The second string to compare
* @return integer The comparison result
*/
function jlex__strlen_sort(string $a, string $b) : int
