Created
February 25, 2019 19:06
-
-
Save tieutantan/a53906ea873ef94f159e23f9712b49b6 to your computer and use it in GitHub Desktop.
PHP - Prepare process textarea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$files = $_POST['files_list']; | |
$filesArray = array_map("trim", explode("\n", $files)); | |
$filesArray = array_filter($filesArray); // Remove empty array elements | |
$formatedFilesArray = array_unique($filesArray); // Deleting the duplicate items | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment