Doc #42285 [Com]: var statement

From: Date: Mon, 29 Mar 2010 09:37:13 +0000
Subject: Doc #42285 [Com]: var statement
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4119@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=42285&edit=1 ID: 42285 Comment by: rjmunro at arjam dot net Reported by: x12code at yahoo dot com Summary: var statement Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: XP SP2 PHP Version: Irrelevant New Comment: The documentation for the var statment is still impossible to find. I have no idea what it means - the only relevant hit from searching php.net for "var statement" is this bug report. If I go to http://php.net/var, it takes me to http://php.net/manual/en/book.var.php, which is titled "Variable handling" and should presumably contain the information, but doesn't contain the string "var " in it's entire contents. So far I can't find what var means. Previous Comments: ------------------------------------------------------------------------ [2007-08-16 08:42:17] vrana@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. ------------------------------------------------------------------------ [2007-08-13 14:38:15] x12code at yahoo dot com Description: ------------ The following page mentions "classes": http://us.php.net/manual/en/language.oop.php I am learning PHP. I went through an online tutorial and am now reading through the manual as I am lead page by page. On this page I came across new syntax not seen before which is the "var statement". This appears different than other variable declaration, which is just to type the variable name on a line with no assignment, or just use the variable for the first time. Wanting to be sure what this means I read previous manual pages on php.net again, I searched php.net, and I did an internet wide google search. I feel I have come to understand the "var statement", but doing so was difficult. It was not expressly stated in the manual. Searching is difficult because "var" is quite ambiguous to "variable" for both PHP and Javascript, and php.net uses "$var" for some code examples. Thanks Reproduce code: --------------- n/a Expected result: ---------------- n/a Actual result: -------------- n/a ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=42285&edit=1

« previous php.doc.bugs (#4119) next »