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.
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. |
Possibles values for the returned string are:
"boolean" (since PHP 4)
"integer"
"double" (for historical reasons "double" is returned in case of a float, and not simply "float")
"string"
"array"
"object"
"resource" (since PHP 4)
"NULL" (since PHP 4)
"user function" (PHP 3 only, deprecated)
"unknown type"
For PHP 4, you should use function_exists() and method_exists() to replace the prior usage of gettype() on a function.
| settype() |
| is_array() |
| is_bool() |
| is_float() |
| is_int() |
| is_null() |
| is_numeric() |
| is_object() |
| is_resource() |
| is_scalar() |
| is_string() |
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.