- Impact
- 19
hey
i am reading a PHP ebook and it tells me how to change the type of a string..and i m doing what the book says but it keeps saying that the string is A "STRING" rather then a DOUBLE
here is the code
here is wt it displayS:
i am reading a PHP ebook and it tells me how to change the type of a string..and i m doing what the book says but it keeps saying that the string is A "STRING" rather then a DOUBLE
here is the code
PHP:
define(SPACE, "<br/>");
define (A, " ") ;
$number = 1;
$number2 = "3.14";
print gettype(number2). SPACE;
settype($number2, double);
print gettype(number2). SPACE;
here is wt it displayS:
string
string








