Sean Wei says to YSITD
這樣不是更潮又簡單? $msg = explode("\n", $msg, 2) $title = $msg[0] $body = $msg[1]