gettype() and settype() Data Types : Data Type « Data Type « PHP






gettype() and settype() Data Types




Data Type                Returned by gettype                     Set by settype
----------------------------------------------------------------------------------
Array                    Array                                   Array

Boolean                  Boolean                                 Boolean

Double                   Double                                  Double

Integer                  Integer                                 Integer

Null                     Null                                    N/A

Object                   Object                                  Object

Resource                 Resource                                N/A

String                   String                                  String

Unknown                  Unknown type                            N/A
           
       








Related examples in the same category

1.PHP Data Types
2.Returns true if $a is an array
3.Returns true if $a is a floating-point number
4.Returns true if $a is an integer
5.Create Object and check its type
6.Create Object and get its type
7.Returns true if $a is a string
8.is_numeric in action