php return elements from file content

Posted by mdskinner on Stack Overflow See other posts from Stack Overflow or by mdskinner
Published on 2010-04-28T04:28:44Z Indexed on 2010/04/28 4:33 UTC
Read the original article Hit count: 136

Filed under:
|

Pretty simple i'm sure, but..

I've got a file that is guaranteed to have only an <h1>some text</h1> and a <p>some more text</p> in it.

How would i go about returning these to elements as separate variables?

© Stack Overflow or respective owner

Related posts about php

Related posts about file