<?php $ar = file_get_contents("archivo.txt"); $ar=explode(',',$ar); echo $ar[2];//cordenada 1 echo $ar[4];//cordenada 2 ?>