How can I count the amount of equal signs in a line in php
<p>I need to count the number of equal signs in a line.  What is the best way of doing this.  The text file is also pretty large, so if possible  I would first like to check to see if an equal sign is in the line at all and then count them (if this would be faster).  I do not need to know how to loop through the lines (I already know this part).  Also if there is a way to do it so if it hits a certain number (for instance if more than 5 equal signs are in the line) that would would automatically stop (if this speeds things up).</p>

<p>Regards,</p>
