Changing list to php