Changed index.php

Tried to updated index with using array's instead but didnt work.