hchsk Posted May 6, 2009 Share Posted May 6, 2009 how can i check the number of occurrences of an ampersand (&) in a string? count_chars seems to be what i'm looking for, but it returns an array that to be honest i dont entirely understand, i want an integer return perhaps somehow with regex? Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted May 6, 2009 Share Posted May 6, 2009 maybe substr_count()? Quote Link to comment Share on other sites More sharing options...
hchsk Posted May 6, 2009 Author Share Posted May 6, 2009 perfect, haha. thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.