title: Adding some text to php code -- for dummies
body: <p>Thanks in advance for reading this.</p>
  
  <p>I know nothing about php or coding, and I've been trying to follow some internet guides to add a few words of text to a snippet of code. The code is used to do some automatic currency conversions, and that's embedded in an article which is opened in a popup. </p>
  
  <p>I'm desperately trying to add a few words in front of each separate conversion. I've added the code below -- the output is the last three lines, and I'd like to add some text in front of each line (different text for each line), but I keep running into trouble, I just can't seem to get it right.</p>
  
  <p>I would greatly appreciate any ideas, I'm not actually even sure it's possible.</p>
  
  <p>I'd like to add something in front of each of those last three lines.</p>
  
  <p>Is that possible? I would appreciate any and all ideas, thanks in advance for your time.</p>
  
  <p>Best wishes,
  Ben</p>
  
  <pre><code> &lt;?php
  // #########################################################################
  // September 09, 2012
  // Real time PHP currency converter function with quotes from Yahoo Finance
  // Written by Leonard Whistler
  // lwhistler@gmail.com
  // #########################################################################
  
  function currencyExchange($amount,$baseCurrency,$quoteCurrency) {
  $open = fopen("http://quote.yahoo.com/d/quotes.csv?s=$baseCurrency[0]$quoteCurrency[0]=X&amp;f=sl1d1t1c1ohgv&amp;e=.csv", "r");
  $exchangeRate = fread($open, 2000);
  fclose($open);
  $exchangeRate = str_replace("\"", "", $exchangeRate);
  $exchangeRate = explode(",", $exchangeRate);
  $results = ($exchangeRate[1]*$amount);
  $results = number_format ($results, 0);
  $amount = number_format ($amount);
  $timeStamp = date('F d, Y');
  $timeStamp = "$timeStamp $exchangeRate[3]";
  
  echo "$amount $baseCurrency[1] = $results $quoteCurrency[1]&lt;br&gt;";
  $timestamp;
  }
  
  // for additional currency ticker symbols visit: http://finance.yahoo.com/currency-converter
  $usd = array('USD','USD');
  $eur = array('EUR','Euro');
  $jpy = array('JPY','Japanese Yen');
  $gbp = array('GBP','British Pounds');
  $aud = array('AUD','Australian Dollars');
  $chf = array('CHF','Swiss Francs');
  $cad = array('CAD','Canadian Dollars');
  $krw = array('KRW','KRW');
  
  // amount, base currency, quote currency.
  currencyExchange("25",$usd,$krw);
  currencyExchange("20",$usd,$krw);
  currencyExchange("39",$usd,$krw);
  
  ?&gt; 
  </code></pre>