Re: Globalness of variables? Functions & subs
| From: | Steven Haryanto | Date: | Thu, 26 Apr 2001 06:47:19 +0000 |
| Subject: | Re: Globalness of variables? Functions & subs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50431@lists.php.net to get a copy of this message | ||
At 4/25/2001 08:11 AM, Dexter wrote:
I see functions , are there subroutine calls. I guessYou probably came from Pascal or something similar, which formally separate 'function' from 'procedure'. They are exactly the same (i.e., subroutines: some piece of code you call and will eventually return to you, hence the word 'sub'.) Stevenot. A function acts as a sub when it returns no value . A sub that returns a value is a function.