On Fri, 24 Aug 2001, Frank Loewenthal wrote:

> Hi
> 
> Perhaps I am confused, but is it not possible to return arrays in PHP?
> 
> Example:
> 
> function getArray() {
>       $ret = array('hallo','you');
>       return $ret;
> }
> 
> $r = getArray();
> 
> for( $i=0;$i < count($r); $i++)
>       echo "$r[i]";

Do we assume echo "$r[$i]"?? Or is that your mistake ;)

> 
> Does not work! The array shows 2 Elements, but they are emty
> 
> Hm... Where is do mistake?
> 
> Regards
> Frank
> 
> 
> 
> 
> --
> SFI Technology Services AG
> Dr. F. Loewenthal
> Stettbachstrasse 10
> CH-8600 Dübendorf
> Switzerland
> 
> [EMAIL PROTECTED]
> www.sfi.ch
> +41/1-824 49 00
> 
> -------------------------------------------------------
> 
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to