Skip to content

Instantly share code, notes, and snippets.

View jntme's full-sized avatar

Jonathan Meier jntme

View GitHub Profile
@jntme
jntme / random.php
Last active August 29, 2015 14:14
is rand() in php really random?
<?php
function countValueInArray($value, $array) {
$count = 0;
for ($i=0; $i < count($array); $i++) {
if($value == $array[$i]) {
$count++;
}
}
return $count;