Jump to content

[Question] Matching an array in PHP


ev0

Recommended Posts

Basically i want to take an array of numbers let's say:

 

<?
$array1=array("1","2","3","4");
?>

 

Now say i reprint that same array, but the 3 is missing.

 

<?
$array2=array("1","2","4");
?>

 

How would i print what's missing from $array1 out of $array2?

 

Sorry if this is confusing, i'll be happy to go into details if needed.

Link to comment
https://forums.phpfreaks.com/topic/229467-question-matching-an-array-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.