0
How do I exchange the space for %20 with values that come from an Array? I got this far by following examples, but it keeps going wrong:
foreach ($jsonArr['data'] as $row) {
$nome[] = $row['artist']['name']; //artista
$titulo[] = $row['title'];//nome da música
$musica[] = $row['preview'];//audio de 30 segundos
$album[] = $row['album']['cover_xl'];//foto do album
$titulo2 = str_replace(array(' ', '%20'), '', $titulo);
echo $titulo2; }
I need this to put in the url of another API