3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '<td>Kategorie</td> <td>Format</td> <td>Grammatur</td> <td>Verarbeitung</td> <td>Bezeichnung</td> <td>Gewicht/1</td> <td>B-GP</td> <td>B-ZS</td> <td>B-Tage</td> <td>BM-01</td> <td>BM-02</td> <td>BM-03</td> <td>BM-04</td> <td>BM-05</td> <td>BM-06</td> <td>BM-07</td> <td>BM-08</td> <td>BM-09</td> <td>BM-10</td> <td>BM-11</td> <td>BM-12</td> <td>BM-13</td> <td>BM-14</td> <td>BM-15</td> <td>BM-16</td> <td>BM-17</td> <td>BM-18</td> <td>BM-19</td> <td>BM-20</td> <td>BM-21</td> <td>BM-22</td> <td>BM-23</td> <td>BM-24</td> <td>BM-25</td> <td>BM-26</td> <td>BM-27</td> <td>BM-28</td> <td>BM-29</td> <td>BM-30</td> <td>S-GP</td> <td>S-ZS</td> <td>S-Tage</td> <td>SM-01</td> <td>SM-02</td> <td>SM-03</td> <td>SM-04</td> <td>SM-05</td> <td>SM-06</td> <td>SM-07</td> <td>SM-08</td> <td>SM-09</td> <td>SM-10</td> <td>SM-11</td> <td>SM-12</td> <td>SM-13</td> <td>SM-14</td> <td>SM-15</td> <td>SM-16</td> <td>SM-17</td> <td>SM-18</td> <td>SM-19</td> <td>SM-20</td> <td>SM-21</td> <td>SM-22</td> <td>SM-23</td> <td>SM-24</td> <td>SM-25</td> <td>SM-26</td> <td>SM-27</td> <td>SM-28</td> <td>SM-29</td> <td>SM-30</td> <td>Opt1</td> <td>Opt2</td> <td>Opt3</td> <td>Opt4</td>'; $str = str_replace(array('<td>','</td>'),"",$str); $arr = explode("\r\n", $str); echo implode(",",$arr);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Kategorie Format Grammatur Verarbeitung Bezeichnung Gewicht/1 B-GP B-ZS B-Tage BM-01 BM-02 BM-03 BM-04 BM-05 BM-06 BM-07 BM-08 BM-09 BM-10 BM-11 BM-12 BM-13 BM-14 BM-15 BM-16 BM-17 BM-18 BM-19 BM-20 BM-21 BM-22 BM-23 BM-24 BM-25 BM-26 BM-27 BM-28 BM-29 BM-30 S-GP S-ZS S-Tage SM-01 SM-02 SM-03 SM-04 SM-05 SM-06 SM-07 SM-08 SM-09 SM-10 SM-11 SM-12 SM-13 SM-14 SM-15 SM-16 SM-17 SM-18 SM-19 SM-20 SM-21 SM-22 SM-23 SM-24 SM-25 SM-26 SM-27 SM-28 SM-29 SM-30 Opt1 Opt2 Opt3 Opt4