src/Tasks.php
private function findAllTextBetween($beginning, $end, $string) {
    $beginningPos = strpos($string, $beginning);
    $endPos = strpos($string, $end);
    if ($beginningPos === false || $endPos === false) {
      return '';
    }

    $textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos);

    return $textToDelete;
  }
private function findAllTextBetween($beginning, $end, $string) {
    $beginningPos = strpos($string, $beginning);
    $endPos = strpos($string, $end);
    if ($beginningPos === false || $endPos === false) {
      return '';
    }

    $textToDelete = substr($string, $beginningPos, ($endPos + strlen($end)) - $beginningPos);

    return $textToDelete;
  }
private function findAllTextBetween ( $ beginning , $ end , $ string ) { $ beginningPos = strpos ( $ string , $ beginning ) ; $ endPos = strpos ( $ string , $ end ) ; if ( $ beginningPos === false || $ endPos === false ) { return '' ; } $ textToDelete = substr ( $ string , $ beginningPos , ( $ endPos + strlen ( $ end ) ) - $ beginningPos ) ; return $ textToDelete ; }
Finds the text between two strings within a third string.

@param $beginning
@param $end
@param $string

@return string
String containing $beginning, $end, and everything in between.
Finds the text between two strings within a third string .