PHP Tutorial 8 - Math Operators (PHP For Beginners)

preview_player
Показать описание
This video will take a look at the basic Math Operators in PHP, showing you how to do some basic calculations with a few lines of code. We look at addition, subtraction, multiplication and division. We also look at the increment and decrement operators also.

For more information, check out the website:

Рекомендации по теме
Комментарии
Автор

Wow! This is really beginning to make a lot of sense. Thanks for the small segments.

JamesAllenIII
Автор

Hey, Im from India, There are a lot of people working on php, Your Videos are great!!!

rockingace
Автор

5 dislikes they are wrong :( you need tu have a 1000 likes becouse you rock

BKadezabek
Автор

I love youre accent man its sweet, nice tutorials, theyre really helping me out in my course! :)

frozenmoguri
Автор

also subscribed! Best PHP tutorials on Youtube !!

jochenvanaelten
Автор

thank u for gaining me some gud stuff!!

ArunKumar-msgc
Автор

awesome. just awesome! Im still with ya!

jpaulcrosby
Автор

additional info..
modulo sign % - using this sign the modulo sign it looks for the remainder of 2 numbers .

Example.

code:

echo 7 % 3;


output :

1

Hope this helps :D

TheLNONS
Автор

that was helpful thank you very much :')

vsME
Автор

you must use the length() method of a class String which gives you the number of character in your string. For future use IDE which helps in finding bugs in your programs.
Change line 4 to:
int i=hulk.length();

cheers

adrian
Автор

no doubt, there's so much more and it's so much easier. Kind of in the same boat!

GermanicusFortunov
Автор

Great tutorials. Curious as why when I try to increment a integer I get an error. But incrementing/decrementing works for variables with no problems. Please explain.

P.S. I guess it doesn't really make sense to use incrementing with a static integer, but in technical terms is there any other reason that this isn't working? What would would the syntax look like to make it work?

cyphi
Автор

Hi!
First of: Great tutorials and great help! :)
Second: Is there a way to echo out the integers without the $ sign? Like in C++? There you can just echo "num1" (if your integer is calle num1).

tsclubruls
Автор

Great videos! :) But how can I actually publish it on the internet? Like how is everyone supposed to see it?

iTURING
Автор

i can't see the concatenate character of line break?
is it dot/period?

Itosikrm
Автор

Cool I'm the first person to watch this.

blink
Автор

num1++ or num=num+1
num1-- or num=num-1

chris bro can i limit the values after decimal point ???

MrMiraculus
Автор

It's quite similar to C language, isn't it ?  Thanks for the video

cirstearazvan
Автор

one question what if i want to show 5+6=11
i mean not just the answer .
do i have to write normal like *echo "5+6=11" ;*
or there is another way ?

ameri
Автор

hi !! i wonder  whether it is possible to echo  in the variable of string  and integer in the same statement . Please reply ! :) I am totally newbie here 

for exampe  I want to ouput 20+30 = 30 
"30" is integer and "20+30" is string .

vychanotdomhon
visit shbcf.ru