Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个代码:
$strhtml = $segatieladvance; $dochtml = new DOMDocument(); $dochtml->loadHTML($strhtml); $elm = $dochtml->getElementById('upPanelActuciones'); $segatiel= $dochtml->saveXml($elm);
我想知道 $segatiel 中的字符数,我该怎么做?
您可以使用该strlen功能
strlen
strlen($segatiel)