PHP Puzzlet.
Feb. 22nd, 2006 01:21 pmI'm kinda new to PHP, and I'm wondering what is the best way to perform this operation:
I have three variables, $a, $b and $c. Each contains either a single character, or nothing.
What's the best way to test that no two defined values are the same?
Heck, I'm not even sure what the best way to do this would be in Perl, allthough I have a few ideas involving hashes.
I have three variables, $a, $b and $c. Each contains either a single character, or nothing.
What's the best way to test that no two defined values are the same?
Heck, I'm not even sure what the best way to do this would be in Perl, allthough I have a few ideas involving hashes.