I hereby claim:
- I am joerayme on github.
- I am joerayme (https://keybase.io/joerayme) on keybase.
- I have a public key whose fingerprint is 6B65 31B4 BE22 191A 37D5 8DE8 D8CD EF68 6106 40C9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Copyright (c) 2013 Couller Ltd. and Joseph Ray | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
<?php | |
$array = array_fill(0, 50000, 'a'); | |
$start = microtime(true); | |
for ($i = 0; $i < sizeof($array); $i++); | |
$end = microtime(true); | |
echo "Completed with sizeof in the loop in " . ($end - $start) . "s\n"; |
<?php | |
function singularize($word) | |
{ | |
$singular = array ( | |
'/(quiz)zes$/i' => '\1', | |
'/(matr)ices$/i' => '\1ix', | |
'/(vert|ind)ices$/i' => '\1ex', | |
'/^(ox)en/i' => '\1', | |
'/(alias|status)es$/i' => '\1', | |
'/([octop|vir])i$/i' => '\1us', |