Ben adresi ayıklamak gerekir ki, böyle bir dizesi vardır:
$string="xyz company 7 th floor hotel yyyy 88 main Road mumbai 400000 this is sample comapny address 9456 and some other";
$word=str_word_count($string,1,'0...9');
Şimdi word
word[0]=xyz
, word[1]=company
, word[2]=7
, vb gibi, her bir kelime var
I need to compare each value. If the word is a number then I want to save it in a temp variable until I get another number.
For example word[2]
is 7, so I need to save the values from then until 88 in a temp variable. So the temp should contain "7 th floor hotel yyyy 88"
.
Sıcaklığı değişken az 25 karakter varsa biz başka bir sayı elde edene kadar sonra karşılaştırın. Yani burada biz 88-400,000 devam ve geçici değişkene eklemek gerekir.
Geçici nihayet bu gibi görünmelidir: "7 th floor hotel yyyy 88 main Road mumbai 400000"
Herhangi bir yardım lütfen?