Re: [PHP-WIN] NewComer Code

2003-11-15 Thread Rocco CAstoro
Thank you very much, this was exactly the help I was looking for! "Piotr Pluciennik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm afraid not... > this function doesn't return string. Your function prints string... > > If you want your function to return string, try below examp

Re: [PHP-WIN] NewComer Code

2003-11-15 Thread Piotr Pluciennik
I'm afraid not... this function doesn't return string. Your function prints string... If you want your function to return string, try below example: function table4Strings( $string1, $string2, $string3, $string4 ) { return "$string1$string2$string3$string4"; } and use it: echo table4Strings(

[PHP-WIN] NewComer Code

2003-11-14 Thread Rocco CAstoro
Would this be the best and most efficent way to create a function that accepts four string variables and returns a string that contains an HTML table element, enclosing each of the variables in its own cell : "; print ""; print "$string1"; print "$string2"; print "$string3"; print "$string4";