php查询单词喜欢和单词之前跳过[关闭]

php script query out put is "some word STAR some other words", I want remove all workd before "Star". I need all other words after "Star".

I using php script output from a mysql file

$arrayStr = explode('STAR', 'some word STAR some other words');
echo $arrayStr[1];

DEMO


Some documentation:

php.net explode() function

$newStr = substr_replace($str, '', 0, strpos($str,"STAR"));

Where $str is a variable with a string, eg: "some word STAR some other words"