Jump to content

[SOLVED] seperate numbers!


ferret147

Recommended Posts

I am getting the contents of a .txt file, then I want to use the contents to change things on my page; here is an example.

 

Contents of .txt file is - 023000023200500814050317310903091

 

The data is broken up like this - 023 000 023 2 005 008 14 0503 1731 090309 1

 

Lets say I have a H1 tag and I want that to be the first 3 digits, then I have a image but I want Image one to display if the 10th digit is 1 and Image two to display if the digit is 2.

 

Got any ideas how I would achieve this?

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/148639-solved-seperate-numbers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.