Simple functions help using array in php.