Getting text between tags which have attributes in php

     

preg_match_all returning the false when I am trying to get the text between the tags which have attributes.


$str ="

Sarees

";  $king = preg_match('/

(.*?)

/s' $str $matches);  if ($king) {  echo $matches[0];  }else{  echo "false";  }