is_buffer Finds whether a variable is a native unicode or binary string &reftitle.description; boolis_buffer mixedvar Finds whether the given variable is a native unicode or binary string. &reftitle.parameters; var The variable being evaluated. &reftitle.returnvalues; Returns &true; if var is a native unicode or binary string, &false; otherwise. &reftitle.examples; <function>is_buffer</function> example 'Unicode string', 'binary' => b'Binary string', 'resource' => fopen('php://stdin', 'r'), 'integer' => 42 ); // Test which types thats a buffer foreach($types as $type => $value) { if(is_buffer($value)) { echo $type . ' is a either a unicode or binary string'; } else { echo $type . ' is not a buffer value'; } echo PHP_EOL; } ?> ]]> &example.outputs; &reftitle.seealso; is_binary is_string is_unicode