Jump to content

Counting preg match results


graham23s

Recommended Posts

Hi Mate,

 

it returns:

 

00000000000000000000000000000000000000000000000000000000000000000000

 

which is right if i could count the number of 0's

 

i tried:

 

      $matchesfound = preg_match_all('/subject="/', $nsubject, $matchfound);
        
      strlen($matchesfound);
             
      }

 

but that showed nothin.

 

cheers

 

Graham

 

 

yeah, its technically because im in a loop im getting back

 

00000000000000000000000000000000000000000000000000000000000000000000

 

so it should really be just 1, 0 or 1 is trhere still away to count the loop at all?

 

cheers guys

 

Graham

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.