0
$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.?

Ravi Teja
  • 119
  • 1
  • 2
  • 13

2 Answers2

0
echo '<pre>'.var_dump(unserialize($data)).'</pre>';
srmeile
  • 448
  • 4
  • 12
0

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.

user3227262
  • 563
  • 1
  • 6
  • 16