0

my html tag is <div class="address"><h3>Vincent B. Davis</h3> . I will grab Vincent B. Davis string. How i can get this? sorry for my bad english.

Janu Yoga
  • 1
  • 5

1 Answers1

0

If you're talking only about getting the regex:

preg_match("/<div class=\"address\"><h3>(.*)<\/h3>/", '<div class="address">
<h3>Vincent B. Davis</h3></div>', $output_array);

echo $output_array[1];
C. Sanchez
  • 76
  • 1
  • 7