如何使用php分析excel中单元格的内容

I want to analyze the data inside the cell. More specifically, divide it into house number street city.

enter image description here

To get the data from a .csv file you can use this example:

<?php
$row = 1;
if (($handle = fopen("test.csv", "r")) !== FALSE) {
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
        $num = count($data);
        echo "<p> $num fields in line $row: <br /></p>
";
        $row++;
        for ($c=0; $c < $num; $c++) {
            echo $data[$c] . "<br />
";
        }
    }
    fclose($handle);
}
?>

Also you can have a look to the documentation here.

Then to get a particular parts of address, you can use this:

string substr ( string $string , int $start [, int $length ] )

Here you can get more information.