note 14126 deleted from function.ftp-rawlist by didou

From: Date: Thu, 29 May 2003 14:28:17 +0000
Subject: note 14126 deleted from function.ftp-rawlist by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49247@lists.php.net to get a copy of this message
Note Submitter: woprog at hotmail dot com ---- You can use the following function to easily divide a rawlist-row into pieces... the function returns an array function strip_rawlist_line($row) { $part = strtok($row, " "); $len = strlen($part)+1; while ($len < strlen($row)) { $result[] = $part; do { $part = strtok(" "); $len++; } while ((strlen($part)==0) || ($len >= strlen($row))); $len += strlen($part); } if ($part) $result[] = $part; return $result; }

« previous php.notes (#49247) next »