php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23002 Misunderstanding with "return" values
Submitted: 2003-04-01 06:12 UTC Modified: 2003-04-01 06:15 UTC
From: tix@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2RC1 OS:
Private report: No CVE-ID: None
 [2003-04-01 06:12 UTC] tix@php.net
Hi,

the explaination of the function var_dump() isn't clear enough (http://www.php.net/manual/en/function.var-dump.php):

----------------- User note added -----------------

The notes for this function say:

"void var_dump ( mixed expression [, mixed expression [, ...]])

This function returns structured information about..."

I've never used this function before, and I don't know how it works.  First it says it returns void, then it says it returns a value.  Please clarify this document.

----------------- End of user note -----------------

I think he misunderstand the meaning of "This function returns". It's not the return value of the function. It's just the output it will produce.

Maybe somebody could change the explaination to cleaner description.

Greetings
Oliver

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-01 06:15 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 20:01:32 2024 UTC