You can try this.

<?PHP

$datafile = file("..."); // Here comes your filename

for ($k=0; $k<=count($datafile)-1; $k++) {

  echo "$datafile[$k]<br>"; // Display each line read from datafile

}

?>


"Yamin Prabudy" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I got a file line like this
>
> <!-- START -->
> This is a line1
> this is a line2
> this is a line3
> this is a line4
> <!-- END -->
>
>
>
> how can i grep out the line1,line2,line3 ??
> do anyone out there have any idea ?
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to