這就是所謂的data.txt
循環與文本兩列文件
john engineer
mathew IT consultant
elan Vice president
emili administrator
joicee nurse
$lines = file('data.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach ($lines as $names => $designation) {
//I am not sure above one is right?? then what??
}
我想這兩個變量
$names = john;
$designation = Engineer;
和循環加載的示例文本文件通過...
:看到我的代碼..它的工作!測試它 – 2011-02-14 13:30:09
@Manish讓你的代碼站在自己的優點,不要垃圾評論試圖出售你的答案 – meagar 2011-02-14 18:34:43
@meagar:酷男!它okk! – 2011-02-15 04:59:15