2011-03-12 35 views

回答

0

你可以試試這個

var_dump(preg_replace("/^[^\.]*\.(.*)/", "\\1", "http://www.example.com")); 

這消除一切從字符串進行到第.字符,包括它。