Re: [PHP] replace question

2003-03-12 Thread WebDev
- Original Message - From: WebDev <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 1:24 AM Subject: Re: [PHP] replace question Hello How could I know recognize a URL in $a $a contains often a URL htp://www.mysite.com but as well more tex

Re: [PHP] replace question

2003-03-12 Thread WebDev
- Original Message - From: WebDev <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 1:24 AM Subject: Re: [PHP] replace question Hello How could I know recognize a URL in $a $a contains often a URL htp://www.mysite.com but as well more tex

RE: [PHP] replace question

2003-03-11 Thread John W. Holmes
> how do we replace this out of an array element > > "~nl~" with " " How about str_replace()? Or are you talking about replacing that value in each and every element in the array? If so, use array_walk() or loop through the array and use str_replace(). ---John W. Holmes... PHP Architect - A

Re: [PHP] replace question

2002-05-06 Thread Josh & Valerie McCormack
(This is more info on the question I asked before) Here's the text file (text.txt): This is a test of the templating program. Here's hoping it's working! John Smith Here's one line from the CSV file (new_data.csv): John,Smith,"4770 Rosepetal Ct., Richmond, VA 22032 USA",(703

Re: [PHP] replace question

2002-05-05 Thread Miguel Cruz
On Sun, 5 May 2002, Josh & Valerie McCormack wrote: > I'm iterating through a CSV file pulling in rows as arrays with fgetcsv > and I'd like to search for patterns made up of the first two array items > of each row with a space between them in a text file, and make them into > links. I can't fi

RE: [PHP] replace question

2002-05-05 Thread John Holmes
Are you having trouble pulling the data out of the file, or creating the link? Do you want a link created for every row? What is the makeup of the file? Is array[0] the URL, and array[1] the desription? If it's just the link you need, that's easy... echo "" . $array[1] . ""; ---John Holmes... >