[nycphp-talk] Arrays out of a file and back in?
Daniel Convissor
danielc at analysisandsolutions.com
Tue Oct 20 20:16:59 EDT 2009
Heya:
> If by "do this" you mean to see if the array changed, what about
> array_diff()?
And be aware that the order of arguments impacts the results.
$a = array(
'a' => 'one',
'b' => 'two',
'd' => 'four',
);
$b = array(
'a' => 'one',
'b' => 'two',
'c' => 'three',
);
print_r(array_diff($a, $b));
print_r(array_diff($b, $a));
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list