Oddiy sarlavha
Oddiy bo‘lmagan, qizil sarlavha
$str;
print gettype($str); // 1 integer;
print
;
$str=”five";
print gettype($str); // string;
print
;
$str.12;
print gettype($str); // double;
print
;
$strqtrue;
print gettype($str); // boolean;
print
;
?>
$ss=3.14 ;
print gettype ($ss) ; // double
print “- - $ss
” ; // 3.14
SetType ($ss, string);
print gettype ($ss) ; // srring
print “- - $ss
“ ; // 3.14
SetType ($ss, Integer);
print gettype ($ss) ; // integer
print “- - $ss
“ ; // 3
SETTYPE($SS, double);
print gettype ($ss) ; // double
print “--$ss
”; // 3.6?>
Do'stlaringiz bilan baham: |