$data=memcache->get($key)
if(!empty($data))
{
var_dump(unserialize($data));
}
How can I get each item in a new line instead of displaying as paragraph array.?
echo '<pre>'.var_dump(unserialize($data)).'</pre>';
Any specific need for using var_dump()? Try this code below
echo $data;
OR
echo unserialize($data);
OR
Run through the $data array using a for loop and echo/print only those parameters which you need to show.