downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MUL> <JMPZ_EX
Last updated: Fri, 20 May 2011

view this page in

MOD

PHP code

<?php
/*
 * Makes the value of "result" congruent to "value1" modulo "value2".
 * opcode number: 5
 */
echo 3;
?>

PHP opcodes

Function name: (null)

Compiled variables: none

line#op fetchextreturn operands
60 MOD   ~0 6,3
 1 ECHO     ~0
72 RETURN     1


add a note add a note User Contributed Notes MOD
shaunny at hotmail dot com 08-Jan-2010 02:35
A simple check to see if a number is divisible by another number,
i.e. if a number is even.

<?php
if ($counter % 2) {
echo
"This number is not even.";
} else {
echo
"This number is even.";
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites