note 76936 deleted from function.file by bobby
| From: | bobby@php.net | Date: | Mon, 06 Aug 2007 19:38:55 +0000 |
| Subject: | note 76936 deleted from function.file by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-129236@lists.php.net to get a copy of this message | ||
Note Submitter: renji dot bio at gmail dot com(renji143)
Reason: bad code
----
renji dot bio at gmail dot com
This is the code for removing first line from a paragraph.This is very much use full particularly in
bioinformatics for removing first line of sequences in FASTA Format
$handle = @fopen($ourFileName, "r");
if ($handle) {
while (!feof($handle)) {
$stringbin[] = fgets($handle);
}
$newstring=array_shift($stringbin);
}
foreach($stringbin as $values)
{
$string.=$values;
}