neo Posted March 18, 2005 Report Posted March 18, 2005 Taatad tests.txt failaa ir sekojosha rinda: kautkas:sheit ir kautkāds teksts Vajag ieguutd divus mainiigos ar veertiibaam kur pirmā mainiigaa veertiiba ir vaards pirms ":" un otru peec ":" . Simbolam ":" nav jaabuut neviena mainiigaa veertiibaa. Paldies
v3rb0 Posted March 18, 2005 Report Posted March 18, 2005 http://lv.php.net/function.file un http://lv.php.net/explode ir Tavi draugi šinī jautājumā.
barons Posted March 18, 2005 Report Posted March 18, 2005 $content = file("texsts.txt"); while ($val = each($content)) { $tmp = explode(":",$val[1]); print ($tmp[0]"); print ($tmp[1]"); } kautkaa taa!
Recommended Posts