npm view available versions
npm view webpack versions --json
npm view available versions
npm view webpack versions --json
getttype php
gettype ( mixed $var ) : string
gettype ("SALUT") => string
gettype (2) => integer
...etc ...
"bool"
"integer"
"double"
"array"
"object"
"resource"
"NULL"
"unknown type"
check type in php
gettype ( mixed $var ) : string
php typeof
gettype($var)
php data types
<?php
/*
Variables can store data of different types, and different data types can do different things.
PHP supports the following data types:
1) String
2) Integer
3) Float (floating point numbers - also called double)
4) Boolean
5) Array
6) Object
7) NULL
8) Resource
*/
// PHP String
$x = "Hello world!";
echo $x;
//PHP Integer
$x = 5985;
var_dump($x);
//PHP Float
$x = 10.365;
var_dump($x);
//PHP Boolean
$x = true;
$y = false;
//PHP Array
$cars = array("Volvo","BMW","Toyota");
var_dump($cars);
//PHP Object
class Car {
function Car() {
$this->model = "VW";
}
}
// create an object
$herbie = new Car();
// show object properties
echo $herbie->model;
//PHP NULL Value
$x = "Hello world!";
$x = null;
var_dump($x);
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us