Jump to content
Sign in to follow this  
pollop

Put information from html to an array

Recommended Posts

pollop

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 :)

Share this post


Link to post
Share on other sites
weaponx

Look up StringBetween in the help file.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.