I came across this discussion in a PHP forum:
Kenji4861:
graeme:
sweatje:
sp0n9e:
sp0n9e:
Kenji4861:
Kenji4861:
Just wanted to get an idea on what the age group is of the people that are getting certified or just interested in PHP. I'm 24 myself. graeme:
Well I guess that $myAge = reverse($yourAge);
cheers, graeme sweatje:
$myAge = -1 + strrev($yourAge) - array_sum(preg_split('//', $yourAge, -1, PREG_SPLIT_NO_EMPTY));sp0n9e:
$years = 0;
for($i=482929200;$i< =time();$i+=365.24*24*60*60)
$years++;
echo $years-1;sp0n9e:
If this turns into an obfuscation contest, may i suggest not allowing preg and ereg functions? that's like almost cheating.
Kenji4861:
... I... suppose.. I'll.. be ..talking like you guys after my PHP courses here? I'm normal so far.