|
Follow @phpsnips |
public function getAllDividends($number){
for($i=2; $i<$number; $i++){
if(($number % $i == 0)){
$num[] = $number / $i;
}
}
return $num;
}
|
Rate this Snippet: |
Suggested Difficulty Level: Beginner
Current Score: 5
Total Views: 480
Other top snippets by aaronroman:
1. Automatic Color Correction (4.50 of 2)
2. Image to ASCII (4.33 of 3)
3. String Output Formatter (1.00 of 1)
4. IP Blacklist Check (5.00 of 11)
5. Send SMS with (3.60 of 5)
6. Cache PHP Generated (0.00 of 0)
7. Database Connection (4.00 of 2)
8. Email Validator (3.25 of 4)
9. Shorten text and (3.67 of 3)
10. file-based simple guest (2.00 of 1)
11. adding an entry (5.00 of 1)
12. integer to currency (1.33 of 3)
13. Aggregate IP addresses (0.00 of 0)
14. file handling (0.00 of 0)
15. testing system with (0.00 of 0)
16. Make an php (1.00 of 1)
17. allow download in (5.00 of 1)
18. redirect in 3 (3.00 of 2)
19. live clock with (1.00 of 1)
20. visit counter (4.00 of 3)
21. contact form with (3.33 of 3)
22. show a specific (1.00 of 1)
23. The & sign (5.00 of 1)
24. static variable in (1.00 of 1)
25. multiplication table with (1.00 of 1)