<?php
	$pattern = "/\[VAR:(.*?)\]/";
$string = "[VAR:one] once apon a time [VAR:two]. And then there was the time that [VAR:three] went to [VAR:four]";
preg_match_all ( $pattern , $string, $matches );

print_r ( $matches );

?>