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? Link to comment https://forums.phpfreaks.com/topic/174586-solved-get-class/ 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); Link to comment https://forums.phpfreaks.com/topic/174586-solved-get-class/#findComment-920085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.