$string = 'pic.jpeg,pic_2.jpeg,pic_3.jpeg,';
How i can return only strings before the character for example like this: Result:
<input type="text" value="pic.jpeg" />
<input type="text" value="pic_2.jpeg" />
<input type="text" value="pic_3.jpeg" />
This code only return first string (how i can use while here?)
$arr = explode(",", $string, 2);
echo $first = $arr[0];