Php is better from SEO point of view. But other languages are also used for SEO. There is no hard and fast rule for creating a website. SEO is a method to optimize a site it is not limited to any language.