Return the word between the vacuum and ending with a special using PHP

前端 未结 0 840
余生分开走
余生分开走 2020-12-24 14:04

$input = "hi frinds who are you"; preg_match(\'~( .*o)~\', $input, $output);

$output[1] \\ frinds who

i want only who (last space before word ending

相关标签:
回答
  • 消灭零回复
提交回复
热议问题