php arrays, strings and objects first four tasks done