Return to Snippet

Revision: 27661
at June 19, 2010 06:01 by sveggiani


Initial Code
function GetBetween($content,$start,$end){
    $r = explode($start, $content);
    if (isset($r[1])){
        $r = explode($end, $r[1]);
        return $r[0];
    }
    return '';
}

Initial URL
http://www.jonasjohn.de/snippets/php/get-between.htm

Initial Description


Initial Title
get text between $start and $end

Initial Tags


Initial Language
PHP