*is_string* -- Find whether the type of a variable is string

  bool is_string(mixed var)~

Finds whether the type given variable is string.

{var} The variable being evaluated.

Returns TRUE if {var} is of type string, FALSE otherwise.

|is_string| example

<?php >
  if (is_string("23")) {
      echo "is string\n";
  } else {
      echo "is not an string\n";
  }
  var_dump(is_string('abc'));
  var_dump(is_string("23"));
  var_dump(is_string(23.5));
  var_dump(is_string(true));
?>

The above example will output:

  is string
  bool(true)
  bool(true)
  bool(false)
  bool(false)



|is_float| |is_int| |is_bool| |is_object| |is_array|

vim:ft=help:
