IsStringy::checkList()
Not yet in a tagged release
Description
IsStringy::checkList() - can we use every item in a list as a string?
use GanbaroDigital\MissingBits\TypeChecks\IsStringy;
boolean IsStringy::checkList(mixed $list);
Parameters
IsStringy::check() takes one parameter:
mixed $list- the list to examine
Return Value
IsStringy::checkList() returns a boolean:
trueif every entry in$listcan be used as a PHP string (seeIsStringy::check()for details)falseotherwise
Throws
IsStringy::checkList() throws an InvalidArgumentException if:
$listis not a valid list (seeIsList::check()for details)
Works With
IsStringy::checkList() is supported on these versions of PHP:
| PHP Version | Works? |
|---|---|
| 5.5 | Yes |
| 5.6 | Yes |
| 7.0 | Yes |
| HHVM | Yes |