Return to Snippet

Revision: 7408
at July 22, 2008 14:06 by ishkur


Initial Code
function substring_between($haystack,$start,$end) {
	$start_position = strpos($haystack,$start)+strlen($start);
	$end_position = strpos($haystack,$end);
	return substr($haystack,$start_position,$end_position-$start_position);
}

Initial URL

                                

Initial Description

                                

Initial Title
substring_between

Initial Tags
php, find

Initial Language
PHP