DEVILofDARKNESS Posted September 17, 2009 Share Posted September 17, 2009 Is it possible to get the class off a div with php: example <html> <body> <div class="hide"> </div> </body> </html> Can I get the value hide? Quote Link to comment Share on other sites More sharing options...
Garethp Posted September 17, 2009 Share Posted September 17, 2009 preg_match_all('~<div.*?class="(.*?)".*?>~', $Content, $Matches); print_r($Matches); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.