ver.0.1
This commit is contained in:
10
Search.php
Normal file
10
Search.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
function search(string $strFromFile, string $strForSearch): ?string
|
||||
{
|
||||
if($strFromFile) {
|
||||
if (preg_match($strForSearch, $strFromFile))
|
||||
return $strFromFile;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
Reference in New Issue
Block a user