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
https://forums.phpfreaks.com/topic/248512-array-help/
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
https://forums.phpfreaks.com/topic/248512-array-help/#findComment-1276222
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.