извежда :<?
$text = "SOme text here<code> asdsad as </code>, and here some text <code>vik96</code>
here too <code> user</code>";
preg_match_all("/(<code>.*?<\/code>)/", $text, $matches);
echo $matches[0];
?>
а трябва да извежда : asdsad asArray
for($i = 0;$i <= count($matches);$i++) {
echo $matches[0][$i]."<br />";
}