PHP: filter_has_var - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

filter_id Filter

Last updated: Fri, 26 Jan 2007

view this page in

# filter_has_var

(no version information, might be only in CVS)

filter_has_var -- Checks if variable of specified type exists

## Описание

bool filter_has_var ( int type, string variable_name )

## Список параметров

`type`

  One of `INPUT_GET`, `INPUT_POST`, `INPUT_COOKIE`, `INPUT_SERVER`, `INPUT_ENV`.

`variable_name`

  Name of a variable to check.

## Возвращаемые значения

Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

add a note User Contributed Notes
filter_has_var
julien dot pauli at doctorrock dot eu
08-Jan-2007 04:43
`<?php
filter_has_var(INPUT_POST, 'submit')
?>
is same as
<?php
isset($_POST['submit'])
?>`
add a note
filter_id Filter

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 11:33:19 2007 PST