Created
October 2, 2012 10:19
-
-
Save slav123/3818033 to your computer and use it in GitHub Desktop.
grab id's from table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array_walk_recursive($this->data['invoices'], array($this, '_grab_ids')); | |
private function _grab_ids($item, $arr_key) { | |
if ($arr_key == 'id') { | |
$this->data['ids'][] = $item; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment