php - How to fetch value of key in array if key is of different content type -


i developing plugin wordpress import products woocommerce spreadsheet using ajax.

my spreadsheet have values of utf-8 content type lyftrörelse | egenhöjd | plattformslängd

so when upload file using ajax , send php file

data being sent correctly. when fetching values array in php file like

$valuefirst=$productarray["lyftrörelse"]; 

var_dump($valuefirst);

is returning null,
if change value of spreadsheet ["lyftrorelse"]

now when print

$valuefirst=$productarray["lyftrorelse"];

var_dump($valuefirst);

it printing value, earlier when doing without ajax there no such problem, content being read suggestions ?

try setting content-type in ajax request,

contenttype: "charset=utf-8",


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -