Skip to content

Instantly share code, notes, and snippets.

@stevebauman
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevebauman/1a8100e155cd6e380d54 to your computer and use it in GitHub Desktop.
Save stevebauman/1a8100e155cd6e380d54 to your computer and use it in GitHub Desktop.
Recursive BOM Method Results
array(2) {
[0]=>
array(7) {
["id"]=>
string(1) "2"
["name"]=>
string(9) "Table Top"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "1"
["depth"]=>
int(1)
["parts"]=>
array(1) {
[0]=>
array(7) {
["id"]=>
string(1) "4"
["name"]=>
string(6) "Screws"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "1"
["depth"]=>
int(2)
["parts"]=>
array(1) {
[0]=>
array(7) {
["id"]=>
string(1) "5"
["name"]=>
string(5) "Metal"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "5"
["depth"]=>
int(3)
["parts"]=>
array(2) {
[0]=>
array(6) {
["id"]=>
string(1) "6"
["name"]=>
string(3) "Ore"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(2) "10"
["depth"]=>
int(4)
}
[1]=>
array(6) {
["id"]=>
string(1) "7"
["name"]=>
string(4) "Flux"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "5"
["depth"]=>
int(4)
}
}
}
}
}
}
}
[1]=>
array(7) {
["id"]=>
string(1) "3"
["name"]=>
string(10) "Table Legs"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "4"
["depth"]=>
int(1)
["parts"]=>
array(1) {
[0]=>
array(7) {
["id"]=>
string(1) "4"
["name"]=>
string(6) "Screws"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "2"
["depth"]=>
int(2)
["parts"]=>
array(1) {
[0]=>
array(7) {
["id"]=>
string(1) "5"
["name"]=>
string(5) "Metal"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "5"
["depth"]=>
int(3)
["parts"]=>
array(2) {
[0]=>
array(6) {
["id"]=>
string(1) "6"
["name"]=>
string(3) "Ore"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(2) "10"
["depth"]=>
int(4)
}
[1]=>
array(6) {
["id"]=>
string(1) "7"
["name"]=>
string(4) "Flux"
["metric_id"]=>
string(1) "1"
["category_id"]=>
string(1) "1"
["quantity"]=>
string(1) "5"
["depth"]=>
int(4)
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment