php - getting values with preg_match_all -
how can each value returned php preg_match_all using each loop, because want insert each value in database. thanks
preg_match_all('/pattern/', $haystack, $matches); foreach($matches[0] $match) { echo $match; }
the third parameter variable matches stored. can use print_r($matches)
see structure of array , design code accordingly
Comments
Post a Comment