array value in php -


in following code , in echo of preview why getting h.

  echo "<pre>";   print_r($thumb);   echo $thumb=$thumb['thumb']."<br/>";   echo $preview=$thumb['preview'];   exit;  array (     [thumb] => http://dtzhqpwfdzscm.cloudfront.net/4d52463406ce5.jpg     [preview] => http://dtzhqpwfdzscm.cloudfront.net/4d5246345dac0.jpg ) http://dtzhqpwfdzscm.cloudfront.net/4d52463406ce5.jpg h 

please suggest

because you've overwritten $thumb variable. change to:

  echo "<pre>";   print_r($thumb);   echo $thumb['thumb']."<br/>";   echo $thumb['preview'];   exit; 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -