StringUtils deprecated
StringUtils deprecated
class StringUtils
deprecated
String utility functions.
Methods
static bool | equals(string $knownString, string $userInput) Compares two strings. | |
static int | safeStrlen(string $string) Returns the number of bytes in a string. |
Details
static bool equals(string $knownString, string $userInput)
Compares two strings.
This method implements a constant-time algorithm to compare strings. Regardless of the used implementation, it will leak length information.
static int safeStrlen(string $string)
Returns the number of bytes in a string.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Core/Util/StringUtils.html