017 PHP Operators - Arithmetic Operator
PHP Operators - Arithmatic Operators
In this lesson "PHP Operators - Arithmatic Operators ", I discussed about Arithmatic Operators in PHP.
Just remember basic Arithmatics that you used to do in your School. The same operations can be performed in PHP using Arithmetic Operators. The Arithmetic Operators are used with numeric values to perform common arithmetical operations, such as addition, subtraction, multiplication etc.
The division operator ("/") returns a float value unless the two operands are integers (or strings that get converted to integers) and the numbers are evenly divisible, in which case an integer value will be returned. For integer division, see intdiv().
Operands of modulo are converted to integers (by stripping the decimal part) before processing. For floating-point modulo, see fmod().
The result of the modulo operator % has the same sign as the dividend — that is, the result of $a % $b will have the same sign as $a
PHP Operators | Operators in PHP | Arithmetic Operator
If you have any specific question, please feel free to ask in comment section.
Subscribe: If you like the video, please subscribe to the channel
https://www.youtube.com/channel/UC54qZs5I_kgCYJT4uwowKag?sub_confirmation=1
Click Thumbs Up if you liked the video
Contact: training@ashman.in for training inquiries.
Thank you for watching "PHP Operators - Arithmetic Operators"
PHP Operators | Operators in PHP | Arithmetic Operator | PHP Arithmetic Operator
Leave 017 PHP Operators - Arithmetic Operator to:
Read more #php posts
Best Posts From Ashman
We have not curated any of ashmanm's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Ashman
- 024 PHP Operators - Type Operator
- 023 PHP Operators - Logical Operator
- 022 PHP Operators - Array Operator
- 021 PHP Operators - Concatenation Operator
- 020 PHP Operators - Increment & Decrement Operator
- 019 PHP Operators - Comparison Operator
- 018 PHP Operators - Assignment Operator
- 017 PHP Operators - Arithmetic Operator
- 016 PHP Operators
- 015 PHP Data Types - Array