I have a simple associative array called $product
.
This is how it looks with var_dump[$product]
array(5) {
["sku"]=>
string(9) "001R00610"
["name"]=>
string(28) "Xerox 001R00610 Transfer Kit"
["image_label"]=>
string(28) "Xerox 001R00610 Transfer Kit"
["small_image_label"]=>
string(28) "Xerox 001R00610 Transfer Kit"
["thumbnail_label"]=>
string(28) "Xerox 001R00610 Transfer Kit"
}
But when i try and get the value of sku with var_dump($product['sku'])
it returns null?
var_dump($product['sku']);
returns
NULL
I have noticed there seems to be a linebreak in at sku
, but i am not sure what is causing this or if this is related to my issue.