load($_REQUEST); echo "
"; print_r($fullInformation); $string = $fullInformation->toString(); $file = fopen($fileName, $fileModeOpen); fwrite($file, $string); fclose($file); $formSearch = ''; echo $formSearch; /*$file = fopen($fileName, "r"); $arrKey = array('surname', 'name', 'patronymic', 'dateOfBirth', 'gender', 'countryCode', 'phoneNumber', 'email'); $parsingArray = array(); echo "
"; print_r($_REQUEST); $forSearch = $_REQUEST['result_search']; while (!feof($file)) { $str = fgets($file); //if(search($str, '/\b(иванов)\b/ui')){ if(search($str, $forSearch)){ $array = array_combine($arrKey, explode(";", $str)); $obj = new Information(); $obj->load($array); $parsingArray[] = $obj; } } echo ""; print_r($parsingArray);*/ require "table.php";