Re: note 8645 added to getcwd
| From: | Zak Greant | Date: | Thu, 21 Sep 2000 18:57:44 +0000 |
| Subject: | Re: note 8645 added to getcwd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-5308@lists.php.net to get a copy of this message | ||
At 02:57 AM 9/22/00 +0000, njs+php@scifi.squawk.com wrote:
Specifying getcwd(void) as shown in the example, results in Warning: Wrong parameter count for getcwd() specifying getcwd() works.There is no example for getcwd, even though there probably should be. What you are looking at is the function prototype. string getcwd(void);
^ ^ ^ | | void is the type of the argument*| getcwd is the name of the function string indicates that a value of type string is returned * void is a synonym for none/null So basically, this prototype means: Call getcwd without any arguments and it will return a string. - Zak