can i use keywords like int char etc instead of var

Discussion in 'JavaScript' started by 123kid, Nov 26, 2006.

  1. #1
    can i use keywords like int char etc insted of var...or is there any easy way of validation to find out wheter the given variable is numberic or character or alpha numeric....
     
    123kid, Nov 26, 2006 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    Not sure in java, but PHP can check.

    
    <?php
    if (is_numeric($value))
    {
    // do something
    }
    else
    {
    // do something else
    }
    ?>
    
    Code (markup):
    Bye :)
     
    JEET, Nov 26, 2006 IP