Lines Matching refs:settype
2 Test gettype() & settype() functions : error conditions
8 Prototype: bool settype ( mixed &$var, string $type );
12 /* Test different error conditions of settype() and gettype() functions */
14 echo "**** Testing gettype() and settype() functions ****\n";
22 echo "\n*** Testing settype(): error conditions ***\n";
24 var_dump( settype() );
28 var_dump( settype( $var, $var, "int" ) );
31 var_dump( settype( $var, "unknown" ) );
36 **** Testing gettype() and settype() functions ****
46 *** Testing settype(): error conditions ***
48 Warning: settype() expects exactly 2 parameters, 0 given in %s on line %d
51 Warning: settype() expects exactly 2 parameters, 3 given in %s on line %d
54 Warning: settype(): Invalid type in %s on line %d