Search found 1 match

by net-fabrikken
Tue Apr 08, 2014 1:42 pm
Forum: Challenges Solved
Topic: Pi Hates Nines
Replies: 26
Views: 3145

Yet another php code ^^ <?php $tmp = ""; $long = ""; $file = file_get_contents('./pi.txt', true); for($i = 0; $i <= 1000000; $i++){ $substr = substr($file, $i, 1); if($substr == 9){ if(strlen($tmp) > strlen($long)){ $long = $tmp; } $tmp = ""; } else { $tmp .= $substr; }...