<?php

$input = 'my address is @@address@@ and my house is at @@street@@ and the number is  @@number@@ or so ';
preg_match_all('/@@[a-z]+@@/', $input, $matches);
$output = $matches[0];
var_dump($output);
