Summery Summery
Calculate $a ^ $b for two strings.
Syntax Syntax
Parameters Parameters
- $a
-
(Required)
- $b
-
(Required)
Return Return
(string)
Source Source
File: wp-includes/sodium_compat/src/Core/Util.php
public static function xorStrings($a, $b) { /* Type checks: */ if (!is_string($a)) { throw new TypeError('Argument 1 must be a string'); } if (!is_string($b)) { throw new TypeError('Argument 2 must be a string'); } return (string) ($a ^ $b); }