note 68294 added to function.sort
| From: | memzap at gmail dot com | Date: | Fri, 21 Jul 2006 04:27:43 +0000 |
| Subject: | note 68294 added to function.sort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-114996@lists.php.net to get a copy of this message | ||
while ( ! feof( $fp ) ) {
$m14line[] = fgets( $fp, 1024 );
sort($m14line);
list($m14title1, $m14titleurl1, $m14rating1) = split ('\|', $m14line[0]);
list($m14title1, $m14titleurl1, $m14rating1) = split ('\|', $m14line[1]);
list($m14title1, $m14titleurl1, $m14rating1) = split ('\|', $m14line[2]);
list($m14title1, $m14titleurl1, $m14rating1) = split ('\|', $m14line[3]);
}
?>
Sorry the code after split was wrong, but it wasn't actually wrong in my code in my program.
Was just posting this as an example.
Basically I am trying to exclude words like "a", "the", or anything that I would
like to use as a word to exlude before the sort; but then after the sort I would like for the full
title to show up in the sort. Sorry if this was to much, but I had to repost after the miss print
of my code.
----
Server IP: 216.194.113.175
Probable Submitter: 67.176.38.16
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.sort.php
Edit -- http://master.php.net/note/edit/68294
Del: integrated -- http://master.php.net/note/delete/68294/integrated
Del: useless -- http://master.php.net/note/delete/68294/useless
Del: bad code -- http://master.php.net/note/delete/68294/bad+code
Del: spam -- http://master.php.net/note/delete/68294/spam
Del: non-english -- http://master.php.net/note/delete/68294/non-english
Del: in docs -- http://master.php.net/note/delete/68294/in+docs
Del: other reasons-- http://master.php.net/note/delete/68294
Reject -- http://master.php.net/note/reject/68294
Search -- http://master.php.net/manage/user-notes.php