Happy Friday!
I am trying to insert values into an array. The values are in one variable separated by a space.
I have the variable:
$multiple_artists = "3 9 12 23";
and I want to insert these variables into the array $artists[]
(note: there are no values in $artists[])
I am trying this
ereg_replace(" ", $multiple_artists, $artists[]);
and also tried this:
ereg(" ", $multiple_artists, $artists[]);
also:
ereg(" ", $multiple_artists, $artists);
Any help?