Array function is not working [SOLVED]

Please post your full code as it is now