PHP Script veritabanına dosya metin aktarmak için

0 Cevap php

I have a set of textfiles containing personal data. I want to use a script to run through them and write them to a mysql database. What I have done so far is to read the text file into a string, explode the string at " " and then run through the array to find the required information. There are a couple of problems with that though, so maybe someone knows a better solution alltogether.

Taban metin dosyasını bu gibi görünüyor:

Name: Marius
Address 1: Street
Address 2: Town
Address 3: Country
etc

Bu sorun ben yani Street 'değer' olduğunu ne kadar uzun bilmenin hiçbir yolu olması. Sadece 'Somestreet' veya 'Bazı Cadde' veya 'Bazı Cadde 1337' olabilir. Bu hemen hemen her alan için geçerli.

":" Biten olmadan tuşu ve sonraki her öğe olarak kullanılır ":" her madde için ile biten dize bir dizinin içine metin çevirmek için bir yöntem olabilir mi değeri olarak kabul edilir?

0 Cevap