Re: Getting totals

From: Date: Wed, 07 Jun 2006 07:03:44 +0000
Subject: Re: Getting totals
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-237533@lists.php.net to get a copy of this message
On 6/7/06, Rob W. <rob@fiberuplink.com> wrote:
I got the fix, strstr didnt work right because it was relaying more than just what I was thinking. Here is the fix.
    $value=array(strstr($block, $address));
    foreach ($value as $var) {
      $block_total_ip++;
     }
How can this work? $value will have 1 element no matter what, so $block_total_ip will always be incremented once. The above code is equivalent to just: $block_total_ip++; Rabin

« previous php.general (#237533) next »