[ create a new paste ] login | about

Link: http://codepad.org/x9uHs1sp    [ raw code | output | fork ]

PHP, pasted on Dec 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
    <?php
    	$data = array('fuups!' => '7','401' => '5','Authorization' => '5','Required' => '5',',' => '3','izle' => '3','Error' => '2','Server' => '2','Internal' => '2','500' => '2','Full' => '1','MegaSinema.net' => '1','Sinema' => '1','Bad' => '1','Request' => '1','Film' => '1','400' => '1');
    
    	$rows = array();
    	for ($i = 0; $i <= 7; $i++) {
    		foreach ($data as $key => $value) {
    			if ($i == $value) {
    			
    				$rows[$i] = $rows[$i] . " {$key}";
    			}
    		}
    	}
    	var_dump($rows);
    ?>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
    array(5) {
  [1]=>
  string(48) " Full MegaSinema.net Sinema Bad Request Film 400"
  [2]=>
  string(26) " Error Server Internal 500"
  [3]=>
  string(7) " , izle"
  [5]=>
  string(27) " 401 Authorization Required"
  [7]=>
  string(7) " fuups!"
}


Create a new paste based on this one


Comments: