You are here: Re: Function not returning « All PHP « IT news, forums, messages
Re: Function not returning

Posted by Janwillem Borleffs on 07/17/06 08:55

Mike schreef:
> Thanks, that all works now.
>
> Can you explain though why it wasn't returning $reply?
>

It was, but you didn't store the output. When a function returns
something, it's not magically stored into a global variable.

For this you can use a reference, the global keyword or the $GLOBALS array.

Perhaps you should examin the section that describes functions in the
online manual more closely (especially regarding returns from functions):

http://www.php.net/manual/hk/functions.php


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация