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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -