I created this because I needed it regularly, and thought I'd share. Click here to run it, and look below to make one for yourself:
Remove Duplicate Lines
if (isset($_POST['submit'])) {
$inputText = $_POST['inputText'];
$lines = explode("\n", $inputText); // Split the input into lines
$uniqueLines = array_unique($lines); // Remove duplicates
$resultText = implode("\n", $uniqueLines); // Join lines back together
echo "
Result:
";echo "";
}
?>
Comments
We enjoy free speech. Leave a comment. Try not to offend, but feel free to be offended.
© 1999-2026
Original content may be copied and used ONLY under the Fair Use Doctrine. All other rights reserved. about
sitemap
or DONATE
privacy
We use affiliate links, which earn a tiny (infinitesimal) commission if you make a purchase after clicking it.
host = dreamhost
our IP = 67.205.28.165
your IP = 216.73.216.200
search





