@@ 198-206 (lines=9) @@ | ||
195 | * |
|
196 | * @return bool |
|
197 | */ |
|
198 | public function containsAll(array $matches = []) { |
|
199 | foreach($matches as $match) { |
|
200 | if(!StringUtils::contains($this->string, $match)) { |
|
201 | return FALSE; |
|
202 | } |
|
203 | } |
|
204 | ||
205 | return TRUE; |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * Determines that the current string contains ANY of the |
|
@@ 216-224 (lines=9) @@ | ||
213 | * |
|
214 | * @return bool |
|
215 | */ |
|
216 | public function containsAny(array $matches = []) { |
|
217 | foreach($matches as $match) { |
|
218 | if(StringUtils::contains($this->string, $match)) { |
|
219 | return TRUE; |
|
220 | } |
|
221 | } |
|
222 | ||
223 | return FALSE; |
|
224 | } |
|
225 | ||
226 | /** |
|
227 | * Returns the defined part of the current string |