php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62286 Description of variable_name parameter
Submitted: 2012-06-10 18:29 UTC Modified: 2012-11-17 12:57 UTC
From: randallfstewart at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.13 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: randallfstewart at gmail dot com
New email:
PHP Version: OS:

 

 [2012-06-10 18:29 UTC] randallfstewart at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.filter-input#refsect1-function.filter-input-parameters
---

Documentation suggestion:
1. This parameter doesn't really seem to be the "variable name" as stated by the documentation.  Wouldn't the variable name be "$_POST['key']" (or something similar)?  

2.  It seems that this parameter is really the KEY to the entry of the superglobal array (specified by the "type" parameter) that is to be filtered.  



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-17 12:57 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2012-11-17 12:57 UTC] krakjoe@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The documentation is correct, an element of an array is itself a variable, 
regardless of reference.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC