PHP
How can yo ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How can you get remainder of $x divided by $y in PHP?
$x / $y
$x // $y
$x & $y
$x % $y
mod ( $x, $y )
Explanation
Example:
Result 4
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
P
HP
Quiz
Login to learn PHP
or
Read more about
PHP Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
PHP quizzes
Consider following code: $var = 1 + "-1.3e3"; echo $va...
Consider following code snippet: print_r("Hello World", t...
Consider following code snippet: $a = 3; $b = '3'; if ($a...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment