Page 1 of 1

Counting between characters...

Posted: Sun Feb 01, 2004 6:54 pm
by Mr. Tech
Lets say this is my text:
{PAGE0}

This is page zero.... kewl...

{PAGE1}

This is page 1

{PAGE2}

This is page 2

{PAGE 3}

This is page 3

{PAGE4}
What I want to do is count how many {PAGE}'s there are on the page which is 5. How would i do this?

Thanks

Posted: Sun Feb 01, 2004 7:23 pm
by d3ad1ysp0rk

Code: Select all

$var = substr_count($string,"{page");