Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、私はPHPExcelを使用してExcelファイルをインポートしましたが、機能があります$cell->getCoordinate();
$cell->getCoordinate();
セル座標を分割するための解決策をお願いしたいと思いalphabetますinteger。
alphabet
integer
例: A1、A2、
現在、どの行、どの列までを知る必要があります。
私は分割についていくつかの調査を行っていますが、それはうまくいきません。何か案が?
これ:
$coord = 'AF13'; preg_match_all('~[A-Z]+|\d+~', $coord, $split); print_r($split);
生産します:
Array ( [0] => Array ( [0] => AF [1] => 13 ) )
$coordinate = PHPExcel_Cell::coordinateFromString('A1'); var_dump($coordinate);