You are here

private function ForumAccessTestCase::strpos_array in Forum Access 6

The array version of the function strpos

1 call to ForumAccessTestCase::strpos_array()
ForumAccessTestCase::assertTextArrayHelper in ./forum_access.test
The array version of the function assertTextHelper

File

./forum_access.test, line 1434
Test file for forum_access.module.

Class

ForumAccessTestCase
This is the base class for forum access testing.

Code

private function strpos_array($haystack, $needles) {
  foreach ($needles as $needle) {
    $pos = strpos($haystack, $needle);
    if ($pos !== FALSE) {
      return $pos;
    }
  }
  return FALSE;
}