<?php $a = 'cat'; $b = 'cats'; $result = 0; for ($i = 0; $i < strlen($a); $i++) { $result |= (ord($a[$i]) ^ ord($b[$i])); } $c = ($result == 0) ? "equal" : "not equal";
You have javascript disabled. You will not be able to edit any code.