|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-11 09:51 UTC] derick@php.net
[2002-11-11 09:53 UTC] sniper@php.net
[2002-11-11 11:09 UTC] Ernest at Beinrohr dot sk
[2002-11-11 11:51 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
PHP's modulo operator cannot work with negative numbers. The positive ones work fine, but modulo is defined also on negatives ;-) ex: 10%3 = 1 [php gives 1] -4%10 = 6 [php gives NULL]