Re: Globalness of variables? Functions & subs

From: 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 guess
not.     A function acts as a sub when it returns no value . A sub that returns a value is a function.
You 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'.) Steve

« previous php.general (#50431) next »