If you're interested in any white space (including tabs etc), use s
if (preg_match("/\s/", $myString)) {
// there are spaces
}
if you're just interested in spaces then you don't even need a regex:
if (strpos($myString, " ") !== false)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…