javascript - How can I rander array withen array in JS? -


array (     [0] => array         (             [contactid] => 5             [companyid] => 54             [personname] => awais             [contactno] => 0321-1111111             [contacttype] => partner         ) ) data[0].personname 

i have read many questions still shows nothing , saying undefiend. can 1 tell me how can show array in html.. ajax response.

seems ajax respone php:

print_r($array); 

what need is:

echo json_encode($array); 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -