Results 1 to 3 of 3

Thread: what is the equivalent of x mod 2(VB->PHP) [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    philippines
    Posts
    245

    Resolved what is the equivalent of x mod 2(VB->PHP) [RESOLVED]

    can you please translate this one to PHP code..

    VB Code:
    1. if (x mod 2) = 0 then
    2.     msgbox x mod 2
    3.   end if

    actually i want to know what is the equivallent for MOD in PHP.. thanks!
    Last edited by titan7262; Sep 12th, 2005 at 07:37 PM. Reason: RESOLVED

  2. #2
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: what is the equivalent of x mod 2(VB->PHP)

    % is used to represent modulus in C like languages I do believe.
    http://au2.php.net/operators.arithmetic
    Don't Rate my posts.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2004
    Location
    philippines
    Posts
    245

    Resolved Re: what is the equivalent of x mod 2(VB->PHP)

    Thanks for the reply i don't know c or other c like languages(yet) heheh thank you so so much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width