- print_r: documentation ( source)
- explode: documentation ( source)
<?php
$str = '224,1,23,Pineapple,2500,2500,anana.png__240,1,23,Goavy,2500,250, goavy.png__140,1,23,Apple, 100,250,pomme.png';
$arr = explode("__", $str);
Foreach($arr as $val){
$items = explode(",", $val);
$res[$items[5]] = $items[3];
}
print_r($res);