Number of occurrences of \n in a string - PHP

Associate
Joined
8 Aug 2008
Posts
302
Hi

I need to work out how many linebreaks there are in a string so I can pad accordingly on a dynamic PDF output and I can't seem to work it out.

Thanks
 
Back
Top Bottom