Skip to content

Instantly share code, notes, and snippets.

@TomasVotruba
Created October 23, 2025 17:22
Show Gist options
  • Save TomasVotruba/897d3a7befcd76c09984432ed37c7d06 to your computer and use it in GitHub Desktop.
Save TomasVotruba/897d3a7befcd76c09984432ed37c7d06 to your computer and use it in GitHub Desktop.
<?php
-$items = explode(',', $input);
-if ($items === []) {
- return [];
-}
-return $items;
+return explode(',', $input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment