views:

71

answers:

2

Hi, I dunno really what its called but basically this is what I want to represent this as a string in PHP :

<div class="post" id="post-*Any Content*">

How could i do this.

edit: sorry for not explaining it very well guys, basically I'm going to be checking to see if a string contains this text, where any content is basically anything in the whole wide world, as long as there is behind.

Like a regex or something maybe.

A: 

Use an HTML parser to parse HTML.

Ignacio Vazquez-Abrams
A: 

regular expressions, preg_match()

zerkms