note 36190 added to function.array-diff

From: Date: Tue, 30 Sep 2003 06:06:58 +0000
Subject: note 36190 added to function.array-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-57373@lists.php.net to get a copy of this message
I was trying to filter a list of common words from some input. The common words were obtained using file($fileName) which returns an array for each line in the file leaves the newline attached. Had to iterate the array and remove the \n character from each array value ---- Manual Page -- http://www.php.net/manual/en/function.array-diff.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36190 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36190&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36190&report=yes

« previous php.notes (#57373) next »