You are here

private static function MessageTrait::filterStringValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::filterStringValue()

Test if a value is a string

Used with array_reduce.

Parameters

bool $carry:

mixed $item:

Return value

bool

File

vendor/zendframework/zend-diactoros/src/MessageTrait.php, line 364

Class

MessageTrait
Trait implementing the various methods defined in MessageInterface.

Namespace

Zend\Diactoros

Code

private static function filterStringValue($carry, $item) {
  if (!is_string($item)) {
    return false;
  }
  return $carry;
}