Re: list to array help

From: Date: Mon, 29 Mar 2004 19:13:01 +0000
Subject: Re: list to array help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181699@lists.php.net to get a copy of this message
Benjamin Jeeves wrote:
Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need help on this getting this list into array format of /somepath/doc1.doc would be $array[0] then /somepath/ doc2.doc would be $array[1] and so on. Then I can use array_count_values for how many times in appears. If I my going off can someone point me in the right way? Thank You Ben
What format is $list_path in? How is it a string-list? If there is a delimiter (; or , for example) you can us explode. $array_path = explode(';', $list_path); -- paperCrane <Justin Patrin>

« previous php.general (#181699) next »