RE: [PHP] Str_Replace Command

2004-02-02 Thread Crane, Christopher
nager - Infrastructure Services IKON Document Efficiency at Work -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 12:25 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Str_Replace Command $StockURL = "http://finance.y

Re: [PHP] Str_Replace Command

2004-02-02 Thread Matt Matijevich
$StockURL = "http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,danky&f=sl1&e=.txt";; $StockResults = implode('', file("$StockURL")); $Rows = split("\n", $StockResults); foreach($Rows as $Row) { list($Symbol, $Price) = split(",", $Row); $Symbol = str_replace('"', "", $Symbol); echo $

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 01:09, Christopher J. Crane wrote: > Well this is it and it is really got me... > Echoing out the $Symbol and $Price works just fine one row about the > $TickerData array assignment. Yet it outputs nothing. > "Array ( [] => )" is what I get. If I change the line to > $Ti

Re: [PHP] Str_Replace Command

2004-02-02 Thread Christopher J. Crane
Well this is it and it is really got me... Echoing out the $Symbol and $Price works just fine one row about the $TickerData array assignment. Yet it outputs nothing. "Array ( [] => )" is what I get. If I change the line to $TickerData = array ("$Symbol" => "$Price"); I get nothing, or the same resu

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 00:52, Christopher J. Crane wrote: > Ok I got around it by the following, but now I have a new problem. I can > not get the two dimensional array working. I want to later be able to > output a variable like this $TickerData["IKN"] and it will output the > associated $Pri

Re: [PHP] Str_Replace Command

2004-02-02 Thread Christopher J. Crane
Ok I got around it by the following, but now I have a new problem. I can not get the two dimensional array working. I want to later be able to output a variable like this $TickerData["IKN"] and it will output the associated $Price. $StockURL = "http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,dan

Re: [PHP] Str_Replace Command

2004-02-02 Thread Jason Wong
On Tuesday 03 February 2004 00:14, Christopher J. Crane wrote: > $StockURL = > "http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,danky&f=sl1&e=.txt";; > $StockResults = implode('', file("$StockURL")); > $Rows = split("\n", $StockResults); > foreach($Rows as $Row) { echo str_replace('"',"",$