Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ziyahan/9369005 to your computer and use it in GitHub Desktop.
Save ziyahan/9369005 to your computer and use it in GitHub Desktop.
$resultset = Array
(
[0] => Array
(
[hidden_gridColumns] =>
[id] => 5
[code] => Garanti
[explanation] => Garanti Bankas�
[status] => 1
[createUserId] => 1
[createDate] => Jan 14 2014 01:20:18:000AM
[editUserId] =>
[editData] => 1
[deleted] => 0
[deleteDate] =>
)
[1] => Array
(
[hidden_gridColumns] =>
[id] => 7
[code] => YAPI KRED�
[explanation] => YAPI KRED� BANKASI
[status] => 1
[createUserId] => 1
[createDate] => Jan 14 2014 01:20:18:000AM
[editUserId] => 1
[editData] => Jan 14 2014 01:20:18:000AM
[deleted] => 0
[deleteDate] =>
)
[2] => Array
(
[hidden_gridColumns] =>
[id] => 8
[code] => AKBANK
[explanation] => AKBANK
[status] => 1
[createUserId] => 1
[createDate] => Jan 14 2014 01:20:27:000AM
[editUserId] => 1
[editData] => Jan 14 2014 01:20:18:000AM
[deleted] => 0
[deleteDate] =>
)
[3] => Array
(
[hidden_gridColumns] =>
[id] => 9
[code] => HSBC
[explanation] => HSBC
[status] => 1
[createUserId] => 1
[createDate] => Jan 14 2014 01:20:34:000AM
[editUserId] => 1
[editData] => Jan 14 2014 01:20:18:000AM
[deleted] => 0
[deleteDate] =>
)
);
function utf8Encode(&$item,$key){
if(gettype($item)=="string")
$item=utf8_encode($item);
}
array_walk_recursive($resultset,"utf8Encode");
echo json_encode($resultset);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment