Php Search Value In Array Python Vs List