2011-11-02 98 views

回答

2

echo strstr($title, 'part', true); // As of PHP 5.3.0

+0

哇,這很快,謝謝你完美的作品! –

0
echo current(explode('part12',$title)); 
0

有關PHP用戶版本< 5.3.0:

echo substr($title, 0, strpos($title, $needle));

相關問題