PHP for Beginners | PHP data types | PHP resource data type | PHP integer | lesson #3.2

Publié le: 02 novembre 2021
sur la chaîne: MLA Automation
48
1

An int is a number of the set ℤ = {..., -2, -1, 0, 1, 2, ...}.

Homework: convert integers to boolean using:
$a = 1234; // decimal number
$a = 0123; // octal number (equivalent to 83 decimal)
$a = 0x1A; // hexadecimal number (equivalent to 26 decimal)
$a = 0b11111111; // binary number (equivalent to 255 decimal)
$a = 1_234_567; // decimal number (as of PHP 7.4.0)


Notes: A leading zero in a numeric literal means "this is octal". But don't be confused: a leading zero in a string does not. Thus:
$x = 0123; // 83
$y = "0123" + 0 // 123

SUBSCRIBE TO CHANNEL:
   / @mlaautomation6888  

Facebook - https://www.facebook.com/profile.php?...
Twitter -   / kachalov2010  

00:52 ► Checking homework lesson #3.1 - Boolean
04:53 ► Today we will talk about type - integer
06:37 ► Different versions of integers
08:16 ► Take a look on examples
10:38 ► Recomendation
11:08 ► Convert different combination of integers
11:12 ► Homework for the next lesson
12:20 ► Farewells with wishes

Don't forget pls to click on 'Like', its giving additional motivation to work on channel.
Thank you for watching, for subscription and see you soon.

#phpinteger #PHPforBeginners #phpoop #php7 #phpresourcedatatype #php7.4 #allphpdatatypes #phpdatatypes #MLAAutomation


Sur cette page du site, vous pouvez voir la vidéo en ligne PHP for Beginners | PHP data types | PHP resource data type | PHP integer | lesson #3.2 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur MLA Automation 02 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 48 fois et il a aimé 1 téléspectateurs. Bon visionnage!