Welcome Guest, Not a member yet? Register   Sign In
Removing the keys from result_array()
#4

[eluser]Coode[/eluser]
This is something I didn't try out myself, but give it a shot!

Code:
<?php
   $r = blah blah->result_array();
   $ids = array_map('intval', array_map('end', $r));
?>

The variable would be array(1, 2, 3, 4). Smile


Messages In This Thread
Removing the keys from result_array() - by El Forum - 05-04-2011, 09:46 AM
Removing the keys from result_array() - by El Forum - 05-04-2011, 09:57 AM
Removing the keys from result_array() - by El Forum - 05-04-2011, 09:59 AM
Removing the keys from result_array() - by El Forum - 05-04-2011, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB