Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

bcmod

(PHP 3, PHP 4 , PHP 5)

bcmod --  Get modulus of an arbitrary precision number

Description

string bcmod ( string left_operand, string modulus)

Get the modulus of the left_operand using modulus.

Example 1. bcmod() example

<?php
echo bcmod(4, 2) . "\n";
echo
bcmod(2, 4);
?>

The above example will output:

0
2

See also bcdiv().



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Online Advertising | Homeowner Loans | Credit Card | Loans | Loan
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp