eduard Posted February 6, 2011 Share Posted February 6, 2011 Can someone explain to me the operator %, please? Link to comment Share on other sites More sharing options...
birbal Posted February 6, 2011 Share Posted February 6, 2011 $a=10;$c=$a%3;$d=$a%4;$e=$a%5;echo $c; //it will show 1echo $d; //it will show 2echo $e; //it will show 0 its actualy return the reminder. Link to comment Share on other sites More sharing options...
Synook Posted February 6, 2011 Share Posted February 6, 2011 It gives the remainder. Link to comment Share on other sites More sharing options...
eduard Posted February 6, 2011 Author Share Posted February 6, 2011 I´ve got it! Thanks! Link to comment Share on other sites More sharing options...
thescientist Posted February 6, 2011 Share Posted February 6, 2011 http://www.w3schools.com/php/php_operators.asp Link to comment Share on other sites More sharing options...
eduard Posted February 6, 2011 Author Share Posted February 6, 2011 I know the answer (sorry, not by W3Schools!)! Link to comment Share on other sites More sharing options...
justsomeguy Posted February 6, 2011 Share Posted February 6, 2011 You can find the full list of operators in PHP here:http://www.php.net/manual/en/language.operators.phpThe % (modulus) operator is listed under arithmetic. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.