Re: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Jason Wong
On Friday 05 December 2003 15:23, Chris Payne wrote: I'm trying to split a string into an Array by a , but I kepe getting errors. Looking at the PHP manual, I thought it would be this way: $keywords = preg_split(,, $email); But it keeps saying that the , isn't an ending delimiter? Study

Re: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Karsten Eichentopf
I'm trying to split a string into an Array by a , but I kepe getting errors. Looking at the PHP manual, I thought it would be this way: $keywords = preg_split(,, $email); Hi, if you just want to split a a,b to array(a,b) you can use explode wich would wourd as you wrote above. $keywords =

RE: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Paul Miller
if the emails are in a CSV file, you can also use fgetcsv ?php $handle = fopen (test.csv,r); while ($data = fgetcsv ($handle, 1000, ,)) { $num = count ($data); for ($c=0; $c $num; $c++) { print $data[$c] . br\n; } } fclose ($handle); ? - Paul -Original Message-

RE: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Dillon, John
time in order to get them into a manageable database. -Original Message- From: Paul Miller [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 15:09 To: Chris Payne; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Splitting a string by a , if the emails are in a CSV file, you can also use fgetcsv ?php

Re: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Karsten Eichentopf
John Dillon schrieb: I don't wish to hyjack this string but there is a module in perl for extracting emails from files, I could not get it to work but wonder is there any pre-written function in php that would parse text and extract the emails. I wish to do it with pst files, ie people who have

Re: [PHP-DB] Splitting a string by a ,

2003-12-05 Thread Ray
them into a manageable database. -Original Message- From: Paul Miller [mailto:[EMAIL PROTECTED] Sent: 05 December 2003 15:09 To: Chris Payne; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Splitting a string by a , if the emails are in a CSV file, you can also use fgetcsv ?php $handle

RE: [PHP-DB] Splitting a string and placing the contents into a form pulldown

2002-06-06 Thread Shrock, Court
use explode() by doing something in the gist of: $options = explode('brbr', $line); echo 'selectoption'.join('/optionoption', $options).'/option/select'; -Original Message- From: Chris Payne To: [EMAIL PROTECTED] Sent: 6/6/02 5:25 PM Subject: [PHP-DB] Splitting a string and placing the