<?php
$tiger = array ("orange", "white"); $cat = array ("black", "white", "brown"); $fruit = array ("purple", "red", "green", "brown");
$arrays = compact('tiger', 'cat', 'fruit');
foreach ($values as $value) {
foreach ($arrays as $name => $bag) {
$found[] = $name;
}
}
echo "$value: ".implode(", ", $found)."\n"; }
PD9waHAKCiR0aWdlciA9IGFycmF5ICgib3JhbmdlIiwgIndoaXRlIik7CiRjYXQgPSBhcnJheSAoImJsYWNrIiwgIndoaXRlIiwgImJyb3duIik7CiRmcnVpdCA9IGFycmF5ICgicHVycGxlIiwgInJlZCIsICJncmVlbiIsICJicm93biIpOwoKJGFycmF5cyA9IGNvbXBhY3QoJ3RpZ2VyJywgJ2NhdCcsICdmcnVpdCcpOwokdmFsdWVzID0gYXJyYXlfdW5pcXVlKGNhbGxfdXNlcl9mdW5jX2FycmF5KCdhcnJheV9tZXJnZV9yZWN1cnNpdmUnLCAkYXJyYXlzKSk7Cgpmb3JlYWNoICgkdmFsdWVzIGFzICR2YWx1ZSkgewogICAgJGZvdW5kID0gYXJyYXkoKTsKICAgIGZvcmVhY2ggKCRhcnJheXMgYXMgJG5hbWUgPT4gJGJhZykgewogICAgICAgIGlmIChpbl9hcnJheSgkdmFsdWUsICRiYWcpKSB7CiAgICAgICAgICAgICRmb3VuZFtdID0gJG5hbWU7CiAgICAgICAgfQogICAgfQogICAgZWNobyAiJHZhbHVlOiAiLmltcGxvZGUoIiwgIiwgJGZvdW5kKS4iXG4iOwp9Cg==