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

Published: 02 November 2021
on channel: 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


On this page of the site you can watch the video online PHP for Beginners | PHP data types | PHP resource data type | PHP integer | lesson #3.2 with a duration of hours minute second in good quality, which was uploaded by the user MLA Automation 02 November 2021, share the link with friends and acquaintances, this video has already been watched 48 times on youtube and it was liked by 1 viewers. Enjoy your viewing!