<?php require("text2array.php"); $data = new Text2Array; $data->setTextFile("sample_data.txt"); //$data->setSeparator("\t","\n"); print_r($data->getArrayData()); ?>