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:
true
if every entry in$list
can be used as a PHP string (seeIsStringy::check()
for details)false
otherwise
Throws
IsStringy::checkList()
throws an InvalidArgumentException
if:
$list
is 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 |