DCL Labs     Files     Network Status     Other Links     About DCL     Home     Search    
Display your IP     Browser:   CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
  Show Return Values from these PHP functions from form input

Test a PHP variable type to to see if the variable returns true or not. Just input any type of alpha, numeric, or combination of the two, and then click on 'Test variable'. The variables listed here are all testing for the true state of the listed function. Note: Form inputs are always considered strings. That's why quite a few of these functions won't test correctly or their return value ever change.

 

Current variable is No Input
Input a string, number, or any alphanumeric combination, then click 'Test variable'.
  1. The function 'is_integer' for variable '' is returning (FALSE).

  2. The function 'is_float' for variable '' is returning (FALSE).

  3. The function 'is_real' for variable '' is returning (FALSE).

  4. The function 'is_scalar' for variable '' is returning (FALSE).

  5. The function 'is_long' for variable '' is returning (FALSE).

  6. The function 'ctype_digit for variable '' is returning (FALSE).

  7. The function 'is_numeric' for variable '' is returning (FALSE).

  1. The function 'is_object' for variable '' is returning (FALSE).

  2. The function 'is_null' for variable '' is returning (TRUE).
        if (is_null()) { echo "TRUE"; }

  3. The function 'is_string' for variable '' is returning (FALSE).

  4. The function 'is_array' for variable '' is returning (FALSE).

  5. The function 'empty' for variable '' is returning (TRUE).
        if (empty()) { echo "TRUE"; }

  6. The function 'is_resource' for variable '' is returning (FALSE).

  7. NULL The function 'var_dump' for variable ''
        var_dump();