PHP: variant_or - Manual in Deutsh
PHP: variant_or - Manual in French
PHP: variant_or - Manual in Polish

You Are At PHP: variant_or - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

variant_or

(PHP 5)

variant_or --  Performs a logical disjunction on two variants

Description

mixed variant_or ( mixed left, mixed right )

Performs a bitwise OR operation, according to the following truth table; note that this is slightly different from a regular OR operation.

Table 1. Variant OR Rules

If left isIf right isthen the result is
TRUETRUETRUE
TRUEFALSETRUE
TRUENULLTRUE
FALSETRUETRUE
FALSEFALSEFALSE
FALSENULLNULL
NULLTRUETRUE
NULLFALSENULL
NULLNULLNULL

See also variant_and(), variant_xor().

Note: As with all the variant arithmetic functions, the parameters for this function can be either a PHP native type (integer, string, floating point, boolean or NULL), or an instance of a COM, VARIANT or DOTNET class. PHP native types will be converted to variants using the same rules as found in the constructor for the VARIANT class. COM and DOTNET objects will have the value of their default property taken and used as the variant value.

The variant arithmetic functions are wrappers around the similarly named functions in the COM library; for more information on these functions, consult the MSDN library. The PHP functions are named slightly differently; for example variant_add() in PHP corresponds to VarAdd() in the MSDN documentation.

5
breloki z nadrukiem
środki do sprzątania
Prezenty
Najnowsze kasy fiskalne

Another Useful functions:


zend.variables | zend-api.zend-u-delete-global-variable | zend-api.zend-print-variable | zend-api.zend-get-compiled-variable-value | zend-api.zend-get-compiled-variable-name | zend-api.zend-delete-global-variable | security.variables | reserved.variables | migration4.variables | language.variables.variable | language.variables.scope | language.variables.predefined | language.variables | language.variables.external | functions.variable-functions | function.variant-xor | function.variant-sub | function.variant-set | function.variant-set-type | function.variant-round | function.variant-pow | function.variant-or | function.variant-not | function.variant-neg | function.variant-mul | function.variant-mod | function.variant-int | function.variant-imp | function.variant-idiv | function.variant-get-type | function.variant-fix | function.variant-eqv | function.variant-div | function.variant-date-to-timestamp | function.variant-date-from-timestamp | function.variant-cmp | function.variant-cat | function.variant-cast | function.variant-and | function.variant-add | function.variant-abs | function.stats-variance | function.stats-covariance | function.mb-convert-variables | function.import-request-variables | function.define-syslog-variables | class.variant |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.