how can I encode the contents of the array $varcontent[$i]["images"] as i did with $varcontent[$i]["content"] ?
$encoded = strtr(base64_encode(addslashes(gzcompress(serialize($nospaces),9))), '+/=', '-_,');
$varcontent[$i]["content"] = $encoded;
$varcontent[$i]["images"] = array_unique($filtered);
Thank you!
You want array_map(). Try this:
http://php.net/manual/en/function.array-map.php