Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
0 Endorsements
Ranked #107.41K
~119 People Reached
- PC Specs
- ASUS K55V core i7, 8gb ddr3, 1 tb, 2gb nvidia
Favorite Forums
Web Development x
1
Favorite Tags
php x
1
Re:
Following function implements a way to find all the indices of a given $needle in $haystack. There is at least one bug in the implementation. Find and fix the bug(s). <?php function findAllIndices($haystack, $needle) { $indices = array(); while ($index = strpos($haystack, $needle)) $indices[] = $index; return $indices; } |