Ver Mensaje Individual
  #7 (permalink)  
Antiguo 25/03/2011, 09:40
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Eliminar elementos array

Prueba algo así:
Código PHP:
Ver original
  1. <?php
  2. $array = array(
  3.     array(
  4.         'value' => '0cfb2606942c7a5ae9a6a34be3cc350d',
  5.         'count' => 9
  6.     ),
  7.     array(
  8.         'value' => '239413514433456',
  9.         'count' => 39
  10.     ),
  11.     array(
  12.         'value' => '239413514433456',
  13.         'count' => 1
  14.     ),
  15.     array(
  16.         'value' => '2394135144234asdf233456',
  17.         'count' => 51
  18.     ),
  19. );
  20.  
  21. $filtered = array_filter($array, function($array) {
  22.     if (!is_array($array)) return true;
  23.    
  24.     if ($array['count'] == 1) return false;
  25.     return true;
  26. });
  27.  
  28. var_dump($filtered);

Saludos.