> *******************************
 > function write_string(count) {
 >
 >     for ($x = 0; $x < $count; $x++) {
 >
 >          echo "<option value=$x> Row $x</option>";
 >
 >     }
 >
 > }
 >
 > $my_string = write_string(5);
 >
 > echo $my_string;
 > *******************************


----8<-----Untested Code-----8<-----
function write_string(count)
{
  $string = "";
  for ($x = 0; $x < $count; $x++)
  {
    $string .= "<option value=$x>Row $x</option>";
  }
  return $string;
}

$my_string = write_string(5);

echo $my_string;
----8<-----Untested Code-----8<-----

Season to taste...

CYA, Dave





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to