RE: [PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Svensson, B.A.T. (HKG)
, then you have a partial match. //Anders - doesn't pople read Knut anymore? -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 4/1/2004 2:59 PM Subject: [PHP-WIN] STUCK : String Comaparison I may be just over thinking this but I'm stuck trying to figure out

Re: [PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Rico Derks
Hi Ron, Also in PHP a string is actually an array of characters. Maybe you can pick out each character and compared it to the character in the same position of the known string! Example: // Get the first character of a string $str = 'This is a test.'; $first = $str{0}; // Get the third charact

[PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Ron.Herhuth
I may be just over thinking this but I'm stuck trying to figure out a solution that has to deal with comparing a series of dynamic strings to a known string. The strings will be 8 characters long and each character will be either a zero or a 1. What I need to do is to compare the dynamic strings