最合适的回答,由SO网友:Ignat B. 整理而成
您可以这样使用
<?php
$sTitle = "Your, Title";// From get_the_title(); or other sources
if(strpos($sTitle , ",")){
$sTitle = substr($sTitle , strpos($sTitle , ",") + 1);
}
echo $sTitle; // You can also trim($sTitle); to remove whitespaces left from substr()
?>