I have done it myself. This is my code for future reference.
Code:
<?php
foreach($alphabets as $key => $val){
if(is_array($val)){
foreach($val as $subval){
$character[] = $key;
$author_id[] = $subval->id;
$author_name[] = $subval->author_name;
}
}
}
?>
Leave a comment: