Jump to content

Array Help


savagenoob

Recommended Posts

I have an array that looks like :

Array ( [0] => Array ( [0] => Blah Blah INSURANCE
[1] => PO BOX 111
[2] => MERCED, CA 91111
[3] => Phone: (111) 111-1111
[4] => Fax: (111) 111-1111
[5] => blah IT
[6] => PO BOX 3231 (9111)
[7] => MODESTO, CA 11111
[8] => Phone: (111) 111-1111
[9] => Fax: (111) 511-1111
[10] => Blah INSURANCE AGENCY, INC
[11] => PO BOX 111 (91111
[12] => TURLOCK, CA 11111
[13] => Phone: (209) 111-1111
[14] => Fax: (209) 111-1111

and need to convert this to display seperately in a table like:

Business NameAddressPhone Number

without the fax, how can this be accomplished.

Link to comment
Share on other sites

Im screen scraping a webpage using curl then pulling the business data from the html. The number of array entries would be determined by the zip code entered. But every entry will have 1.the business name 2. street address 3. city state zip 4. phone 5. fax in that order for every entry.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.