Jump to content

Put information from html to an array


Recommended Posts

Hi,

At first i want to say sry for my english ^^ I'm french xD

So, i'm trying to get informations from a website.

I'm using this function

$code_html = _INetGetSource("http://www.belgium-iphone.com/index.php")

So, in the html code, the informations i want to get are between <h2> and </h2>

Exemple

blablablz

<h2>INFO 1</h2>

blablabla

<h2>INFO 2</h2>

blablabla

<h2>INFO 3</h2>

blablabla

I want to get those information in an array like :

Info[1] = INFO 1

Info[2] = INFO 2

Info[3] = INFO 3

But i don't know how to do that :S

Can you help me a little bit ? :)

Thx :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...