I have an array like this :
[▼
0 => array:47 [▼
"ProductID" => "37883"
"ProductCode" => "G-49211"
"ProductName" => "Preludes"
"StockStatus" => "2"
"LastModified" => "2014-02-27T09:50:00-08:00"
"LastModBy" => "1"
"ProductPopularity" => "110"
"AutoDropShip" => "N"
1 => [
"ProductID" => "37884"
"ProductCode" => "G-49212"
"ProductName" => "Preludes "
"StockStatus" => "2"
"LastModified" => "2014-02-27T09:50:00-08:00"
"LastModBy" => "1"
"ProductPopularity" => "110"
"AutoDropShip" => "N"
]
]
but all values of this array are strings. I want to iterate over this array and cast its values to their original types. if ProductID is integer I want to convert it to integer. Convert dates to real date blabla.
Can this be done ?
"true","1.44","null"?