<?php
//example without limit
$fruits = "orange,banana,pawpaw,guava,pineapple";
$fruit_arr = explode(",", $fruits);
echo $fruit_arr[1];
//Result: banana

//example with limit
$fruits = "orange,banana,pawpaw,guava,pineapple";
$fruit_arr = explode(",", $fruits,3);
print_arr($fruit_arr);
//Result: Array(0 => "orange", 1 => "banana", 2 => "pawpaw")
?>