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

You Are At PHP: gettype - 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

gettype

(PHP 3, PHP 4, PHP 5)

gettype -- Get the type of a variable

Description

string gettype ( mixed var )

Returns the type of the PHP variable var.

Warning

Never use gettype() to test for a certain type, since the returned string may be subject to change in a future version. In addition, it is slow too, as it involves string comparison.

Instead, use the is_* functions.

Return Values

Possibles values for the returned string are:

For PHP 4, you should use function_exists() and method_exists() to replace the prior usage of gettype() on a function.

See Also

settype()
is_array()
is_bool()
is_float()
is_int()
is_null()
is_numeric()
is_object()
is_resource()
is_scalar()
is_string()

najlepsza strona darmo gra profesjonalne wyniki
fizjoterapia
fotograf lublin
Najsmaczniejsze obiady łodź
całodobowa pomoc drogowa Rzeszów

Another Useful functions:


function.soap-soapclient-gettypes | function.sdo-model-reflectiondataobject-gettype | function.sdo-model-property-gettype | function.sdo-dataobject-gettypenamespaceuri | function.sdo-dataobject-gettypename | function.odbc-gettypeinfo | function.httpmessage-gettype | function.haruencoder-gettype | function.gettype | function.directoryiterator-gettype |


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.