$content=substr($text, 1, 0); 
应该是这样的,因为你是取一个变量,不需要加引号