Anonymous
public text v1 · immutable<?php
$a="he said hello world";
$b="hello molly he said";
//find hello(start)
$start=strpos($a, 'hello');
//match next whitespace(end) from $start+6chars
$end=strpos($a, ' ',$start+6);
//extract btwn
echo(substr($a,$start,$end));
strstr($a,'hello world');
substr($b, 0,11);
?>