<?php function is_stringy($var){ return (is_scalar($var) and !is_bool($var)) or (is_object($var) and method_exists($var, '__toString')); } echo is_stringy('wat') ? 'true' : 'false';
You have javascript disabled. You will not be able to edit any code.