mIRC Home    About    Download    Register    News    Help

Print Thread
#235025 20/11/11 04:24 PM
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
hey all,,

Php Code:

//echo -a $calc(12%10) 
 


I get 12, but I am interested in the number 2 , the remainder.

thanks.

Last edited by eawedat; 20/11/11 04:32 PM.
eawedat #235026 20/11/11 04:44 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
separate the % mod from the attachments:

//echo -a $calc(12 % 10)

maroon #235028 20/11/11 05:34 PM
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
thanks


Link Copied to Clipboard