Converting the result in_array into an array
<p>I am trying to extract some checkboxes values into an array. My problem is <strong>array($is_types)</strong>. I am expecting $is_types to be an array, say array(one, two, three):</p>

<pre><code>&lt;?php
  if (!is_array($types)) {
    $types = array();
  }
  $filtered_array = array_filter($types);

 $is_types = in_array($type, $filtered_array);

  $output = _get_array(array($is_types), $bla, $bla2);
?&gt;
</code></pre>

<p><strong>UPDATE:</strong>
I need to rephrase what I am trying to achieve. 
I have some checkboxes with options: one, two, three, etc. Only when I check them, the options should be stored. Checking what are stored is enough with $is_types, returning the bool. 
Then I have a need to do other queries to aggregate content based on these checked checkboxes. That is if I have an array(one, two, three), based on the filtered checkboxes, then  run the query</p>

<p><strong>UPDATE2:</strong></p>

<pre><code>function _get_array($type, $view_mode, $limit = NULL) {

  $node = menu_get_object();
  $build = array();

  $query = new EntityFieldQuery();
  $created = isset($node) ? $node-&gt;created : 'now';
  $query
    -&gt;entityCondition('entity_type', 'node')
    -&gt;entityCondition('bundle', $type, is_array($type) ? 'IN' : '=')
    -&gt;propertyCondition('status', 1)
    -&gt;propertyOrderBy('created', 'DESC')
    -&gt;propertyCondition('created', $created, '&lt;');

  if ($limit != NULL) {
    $query-&gt;range(0, $limit);
  }

  $result = $query-&gt;execute();

  if (!empty($result['node'])) { 
    $nodes = entity_load('node', array_keys($result['node']));
    $build[] = node_view_multiple($nodes, $view_mode);

  }
  return !empty($build) ? $build : array();
}
</code></pre>

<p>The checkboxes are just checkboxes with some values.
So querying _get_array(array($is_types), $bla, $bla2); should load all nodes filtered by these checkboxes value.</p>

<p>Any hint would be very much appreciated. Thanks</p>

<p>UPDATE3:
Thanks to all. The answer was there all along. What I need seems just: $filtered_array</p>
