Sedang Disiapkan

222965 simply php

I am look for a simply script in either php

use for process some address data automatically

eg. Example below

========input text==========================

From:

ABC Pty Ltd

123 FRIENDS Road

PARK LAND New South Wales 2207

Australia

Post to:

abc xyz

16 Drink crescent

Nurioaotpa South Australia 5111

Australia

From:

ABC Pty Ltd

123 FRIENDS Road

PARK LAND New South Wales 2207

Australia

Post to:

aaa Rovira

1d Warrin Road

Langwarrin Victoria 3910

Australia

From:

ABC Pty Ltd

123 FRIENDS Road

PARK LAND New South Wales 2207

Australia

Post to:

BBC WORLD PTY LTD

ATTN:PETER Franklin

330 Helpmann Street

Wantirna South

Melbourne Victoria 3152

Australia

From:

ABC Pty Ltd

123 FRIENDS Road

PARK LAND New South Wales 2207

Australia

Post to:

aaa Rovira

33 mundarda place

st helens park New South Wales 2560

Australia

==============================

1)Firstly using an If case to delete all text start from "From:" to "Post to:" left with only the address

of post to

2)Secondly change all word such as Road , Street, South Australia,"New South Wales" into short form Rd , St, SA, NSW....

so on please make it scaleable so we can add more word myself(don't use table you can hard code the word in php page but make sure it is easy for me to add more)

below is state name need to change to short form

New South Wales => NSW

New South Wale => NSW

Victoria => VIC

South Australia => SA

Western Australia => WA

Australia Capital Territory => ACT

Queensland => QLD

Tasmania => TAS

Northern Territory => NT

3)Third cancel the word "Australia\n" at the end of post to address this need to be done after step 2 since

word like "South Australia" also contain the word "Australia"

4)a textarea input box is best for input we need to insert 80-90 post-to address in once make sure the textarea is

enough and a process button should be need

5)like example 1 "Nurioaotpa South Australia 5111" => Nurioaotpa SA 5111"

since SA is a state name it need to be in new line

"Nurioaotpa

SA 5111"

5)make sure output text in plain [url removed, login to view] address should be 4 line. If an address find to be 5 or 6 you need

to move it to the back after all the 4 line address. one line space between each address as below

===out put=======================

abc xyz

16 Drink cres

Nurioaotpa

SA 5111

aaa Rovira

1d Warrin Rd

Langwarrin

VIC 3910

aaa Rovira

33 mundarda place

st helens park

NSW 2560

BBC WORLD PTY LTD

ATTN:PETER Franklin <== this address become last since it have 5 line

330 Helpmann St

Wantirna South

Melbourne

VIC 3152

==========================================================

Kemahiran: Semua Boleh, PHP

Lihat lebih lanjut: wa australia, victoria melbourne, tasmania it, sa australia, queensland australia, new south wales australia, new south wales, new line php, melbourne western, in victoria, in vic, in queensland, in qld, franklin in, attn, aaa south, aaa a, wales, wa, victoria, tas, st place, south australia, php melbourne, park street

Tentang Majikan:
( 10 ulasan ) Marrickville, Australia

ID Projek: #1969200

Dianugerahkan kepada:

leliksansl

Can be done

$75 USD dalam sehari
(0 Ulasan)
1.4