Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Meier jntme

View GitHub Profile
@jntme
jntme / random.php
Last active Aug 29, 2015
is rand() in php really random?
View random.php
<?php
function countValueInArray($value, $array) {
$count = 0;
for ($i=0; $i < count($array); $i++) {
if($value == $array[$i]) {
$count++;
}
}
return $count;
You can’t perform that action at this time.