Use this first line inside your PHP code:
require("/var/www/html/example/databases/apidemo/api.php");
In this PHP file there are four functions, each of which return arrays
//getAllCustomers(); //getAllAddresses() //getAddressForCust($id) //getCustomer($id)
Pinky,Jack | Home 2 TURTLE_STREETott,ON654321 | Cottagee 42 turt_stottawa,ONqwerty | home 70 butt turd,ON hdnek | adjklsa 2324 ASjdllkasdkkl,MBk23 | Paris France 72312 PSGFRANCE,NBk231 | Testing123 4234 asdasdsda,NBaasd | home 16 Lismer CrescentKanata,ONK2K1A2 | ||||||||||||
Hamiltons,Helen | cottage 2589 ottawa,ON123123 | t t tt,ABt | |||||||||||||||||
Delos,Lucas | Home 206 Hitchhikers_Wayott,ONK2W 0H5 | HOME 7-0 unitedmanchester,BC213123 | HOME 7-0 unitedmanchester,BC213123 | HOME 7-0 unitedmanchester,BC213123 | |||||||||||||||
Holmes,Azaz | Home 11 Fifth_AveOttawa,ONK2E 9A7 | Hello 342 Hello 45stBrazil,NS238s | Hello 342 Hello 45stBrazil,NS238s | ||||||||||||||||
Ashby,Ethan | Cottage 24601 Newbie_StVancouver,BCT2I 3KR | homed 124 phphpottawa,AB342j43 | mongolia 737-1111 f'(x)=7xuganda,SKU7R 3Y6 | ASD ASD SDDS,ABSD | |||||||||||||||
Beeblebrox,Zaphod | Cottage 12 mellow_stMontreaol,QC123456 | Work 31 Street St.ottawa,NUkkkkkk | lkjhgkjghkj 42 hitchhiker's wayEngland,NLh0h0h0 | fgbsfg wgwr dgfhjgk,BCfhg | fdg vcxbs dfsadfsdg,MBsfdg | ||||||||||||||
Smith,Ela | Home 113 Artist_RdOttawa,ONP3N 3N4 | Cottage 113 Artist_RdLA,ONP8R 9N0 | skdhsajkhdjksa sadlmsanm,d asd,mn32u4j,NBfghas | ||||||||||||||||
Trumpet,Joshua | Work 123 Worker_StOttawa,ONabcdef | Work 123 Worker_StOttawa,ONabcdef | WOAH 928 Kingsview CourtNouvelle Ecosse,NSP2L 0B1 | WOAH 928 Kingsview CourtNouvelle Ecosse,NSP2L 0B1 | Work 123 Worker_StOttawa,ONabcdef | ||||||||||||||
Anderson,Masey | Escape 22 JumpstreetDreamland,YKM7H2K9 | test 42 Test StOttawa,ONK0A1T0 | test 42 Test StOttawa,ONK0A1T0 | Thisisatest 3424 WestcarletonBarcelona,NL123 | dsa 12 fsweKanata,ABK2K2V3 | d d dd,ABd | d d dd,ABd | ||||||||||||
Dent,Arthur | ThisDescript 61345 Testing3432Paris,NTk244 | Home 42 Hitchhiker Rd.Space,ONP0S7A1 | STADIUM 4-1 CAMP NOUBARCELONA,MB321409 | here w ww,ABw | here w ww,ABw | Cottage 1 Giorgina StPerth,NLK7H2H3 | diznov 89u43896 lkknesfPerth,ABksejnf4 | ||||||||||||
Scott,Michael | Cottage 1 TEst-StOttawa,ON113avc | Home 1234 DoveOttawa,ONK7H6D4 | |||||||||||||||||
Hawk,Tony | Home 234 Amanda StHalifax,NS523756483 | home 21 skate boardradical,MBnice | mongolia e ee,SKe | ||||||||||||||||
Picket,Davis | School 3088 Dunrobin Rd.Dunrobin,ONK0A1T0 | Home 23 Oakville DriveMontreal,QCUW2 024 | |||||||||||||||||
Banner,Bruce | Work 1 Cave_ParkGotham,YKBAT MAN | home 239057 brickottawa,BCk2k2k2 | |||||||||||||||||
Hickmans,John | Cottage 12 TestOttawa,AB123abc | Cottage 12 TestOttawa,AB123abc | |||||||||||||||||
Gyetko,Dante | Home 1337 Foobar_RdOttawa,ON123 456 | Dumg Mine StatM City,ABK0H 5MB | |||||||||||||||||
Ajersch,Alex | desc 0 stcity,ABXXX XXX | dsfsd 3423 sad213,BC321 | dsfsd 3423 sad213,BC321 | des 123 22Ottawa,ON678u | des 123 22Ottawa,ON678u | Home 123 March RoadOttawa,ON923 J8I | des 123 22Ottawa,ON678u | test test testtest,ABtest | test test testtest,ABtest | test test testtest,ABtest | test 213123 123123123,NB123 | test 213123 123123123,NB123 | yil ,AB | test 5067 mongoliaPerth,ABKEN045 | test2 5067 QueenPerth,ABKfeg9 | t 45 0405Perth,ABingsoeufbn | test2 5067 QueenPerth,ABKfeg9 | No 2 MineSomewhere,BCK7H 3V2 | No 2 MineSomewhere,BCK7H 3V2 |
Willowbee,Putnum | wad e435 awdga435,BC5w234 | ||||||||||||||||||
Crosbie,Sammy | Hot 1568 Old Brooke RoadMaberly,ABK0H2B0 | Hot 1568 Old Brooke RoadMaberly,ABK0H2B0 | No 2 MineSomewhere,BCK7H 3V2 | ||||||||||||||||
Moore,Isaac | BIG HOUSE 321 tree ave.gotham,ABH3F 5C8 | ||||||||||||||||||
Moore,Amelia |