note 109446 deleted from function.array-diff by danbrown
| From: | danbrown@php.net | Date: | Fri, 20 Jul 2012 15:30:20 +0000 |
| Subject: | note 109446 deleted from function.array-diff by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189340@lists.php.net to get a copy of this message | ||
Note Submitter: teterinis at gmail dot com
----
from PHP one liners:
This can diff arrays with regex template or part of string diff:
foreach ($a as $b) {$f=0;foreach ($j as $je){if (strstr($b,$je)) $f=1;}if ($f==0) $a2[]=$b;}
more(Russian):
http://jkeks.ru/jkeks.ru/archives/3974