Search found 2 matches

by InyaGaming
Tue Dec 02, 2014 2:48 pm
Forum: Challenges Solved
Topic: Lorem Ipsum
Replies: 34
Views: 3779

PHP: <?php $text = "TEXT HERE" $t_array = explode(" ", $text); $all = array(); foreach($t_array as $word){ $word = str_replace(".", "", $word); $word = str_replace(",", "", $word); if(isset($all[$word])){ $all[$word] += 1; } else { $all[$wo...
by InyaGaming
Tue Dec 02, 2014 2:36 pm
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9381

PHP Solution for me: <?php function reformatKeys($full){ $return = array(); foreach($full as $value){ $return[] = $value; } return $return; } $full = '93752xxx746x27x1754xx90x93xxxxx238x44x75xx08750912738x8461x8759383xx328x4x4935903x6x5550360535004x0xx945958961296x267x8842xxx5x6xx61x4x48482x80xxx833...