|
...
|
...
|
@@ -168,13 +168,13 @@ class ProofreadingController extends BaseController |
|
|
|
$textContentArray = $matches[1];
|
|
|
|
var_dump($textContentArray);
|
|
|
|
die();
|
|
|
|
$textContentArray = array_filter(, function($item) {
|
|
|
|
if(!empty($item)){
|
|
|
|
$content = trim($item);
|
|
|
|
$trimmedString = preg_replace('/\s+/', ' ', $content);
|
|
|
|
$data[] = $trimmedString;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// $textContentArray = array_filter(, function($item) {
|
|
|
|
// if(!empty($item)){
|
|
|
|
// $content = trim($item);
|
|
|
|
// $trimmedString = preg_replace('/\s+/', ' ', $content);
|
|
|
|
// $data[] = $trimmedString;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
$uniqueArray = array_unique($data);
|
|
|
|
$textContentArray = array_values($uniqueArray);
|
|
|
|
return $textContentArray;
|
...
|
...
|
|