PHP - print a list based on array