$bb is not in the $bob array. It's inside an array that's inside $bob.
you need to create a function that walks through your array to find values:
function deep_in_array($value, $arr) {
for($i=0; $i <= count($arr); $i++) {
if (in_array($value, $arr[$i])) {
return TRUE;
break;
}
}
return FALSE;
}
Then, instead of calling in_array, use deep_in_array() to check if your $bb value is in there.
In your case, however, I recommend making an associative array of products and their values:
//instead of this, which makes an array of arrays:
array_push($bob,array('quantity' => $qty,'product' => $bb));
// do this instead, making an associative array:
$bob[$bb] = $qty;
// Then, all you have to do to check if a product is in the array, is
// this (I'm assuming you really don't want to echo "got it" or "not":
if (!array_key_exists($bb, $bob)) {
$bob[$bb] = $qty;
}
Make sense?
By the way, notice how my code above is inside [php] tags? Please learn how to use them. It makes it much easier to read your code.