% (Modulus)

$i = 10%7; Output = 3.
$j = 10%3; Output = 1.

'%' This is an arithmetic operator in php which is named by modulus. This is use for get the modulus values.
Suppose you have coded 10%3. So what will happen here ?? We know 10 will be divided by 3 total three times and remain 1 as modulus value. 

Comments

Popular posts from this blog

WP register_post_type() with custom CMB2 meta box

Git post receive setup at server for git push to the production from local machine