Compare two strings in constant time.
Description
This function was added in PHP 5.6.
It can leak the length of a string.
Parameters
$astringrequired- Expected string.
$bstringrequired- Actual string.
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |
Compare two strings in constant time.
This function was added in PHP 5.6.
It can leak the length of a string.
$astringrequired$bstringrequired| Version | Description |
|---|---|
| 1.0.0 | Introduced. |