0

Hi,

I have strings like '00101', 00010, i need to find out the count of occurence of 0 from the begining of the string only.In the case of first string i need the count should be 2 and in the second case count should be 3.How can i do this using php?

Please help,
Thanks

2
Contributors
1
Reply
11
Views
3 Years
Discussion Span
Last Post by urtrivedi
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.