It will depend on how you want the elements stored in your array.
If you want to generate an array simply with the names of the elements (without spaces at the beginning of each element) you should use ", "
:
With this code:
$pal = "botella, frasco, recipiente, bandeja, plato, barril";
$pal = explode(", ",$pal);
print_r($pal);
You would get the following output:
Array
(
[0] => botella
[1] => frasco
[2] => recipiente
[3] => bandeja
[4] => plato
[5] => barril
)
If instead you want to keep that space at the beginning of each element then you should use ","
:
With this code:
$pal = "botella, frasco, recipiente, bandeja, plato, barril";
$pal = explode(",",$pal);
print_r($pal);
You would get the following output:
Array
(
[0] => botella
[1] => frasco
[2] => recipiente
[3] => bandeja
[4] => plato
[5] => barril
)
As you can see, in this second case the space is maintained at the beginning of the elements.