swestrup: (Default)
[personal profile] swestrup
I'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.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 10th, 2026 11:05 am
Powered by Dreamwidth Studios