Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function equals($str1, $str2, $length) {
- $same = true
- for($i = 0; $i < $length; $i++) {
- if ( $str1[$i] != $str2[$i]) {
- $same = false;
- }
- }
- return $same
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement