<https://forums.phpfreaks.com/topic/309892-how-to-fetch-the-filename-on-split/#comment-1573625>
<http://schema.org/text>
"It doesn't make sense.\n \n\n\n\tI have asked how to remove the string and get the filename.\n \n\n\n\tI have tried this and it doesn't work.\n \n\n\nforeach ($attached_files_name as $filename)\n{\n     if(strpos($filename, 'attid: ' . $attach_id) !== false)\n     {\n          $filename = str_replace('attid: ' . $attach_id, '', $filename);\n      }\n                    \n      if(strpos($filename, ' attid: ' . $attach_id . ' ') !== false)\n      {\n              $filename = str_replace(' attid: ' . $attach_id . ' ', '', $filename);\n       }\n\n       echo $filename;\n       echo \"&lt;Br&gt;\";\n}\n\n\n\t \n \n"
<https://forums.phpfreaks.com/topic/309892-how-to-fetch-the-filename-on-split/?tab=comments>