php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #67608
Patch add-fronk-support revision 2014-07-11 15:23 UTC by rafavega at gmail dot com

Patch add-fronk-support for *General Issues Bug #67608

Patch version 2014-07-11 15:23 UTC

Return to Bug #67608 | Download this patch
Patch Revisions:

Developer: rafavega@gmail.com

$lines = array(
	'1' => array(
		'1A'
	),
	'2' => array(
		'2A',
		'2B',
		'2C'
	)
);

foreach($lines as &$items){
	foreach($items as $key => $value){
		if($value=='2B') unset($items[$key]);
	}
}

$items = array();
foreach($lines as $key => $items){
	print_r($items);
}
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 00:03:33 2021 UTC