<https://forums.phpfreaks.com/topic/309892-how-to-fetch-the-filename-on-split/#comment-1573639>
<http://schema.org/text>
"Then you deserve to have problems \n \n\n\n\tTry\n \n\n\n$attached_files = &lt;&lt;&lt;DATA\nattid: 0 filename: email1.png\nattid: 1 filename: email2.png\nattid: 2 filename: email3.png\nattid: 3 filename: my_inbox.png\nDATA;\n \n$afArray = explode(\"\\n\", \"$attached_files\");\n \nforeach ($afArray as $af) {\n    echo trim(strrchr($af, ':'), ': ') . '&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>