Jump to content

Array_Diff function


gple

Recommended Posts

I am using the array_diff function and the code is below:

 

$result_e = array_diff($team_list, $list);

print_r($result_e);

 

When I output the result of this function, it looks like this:

Array ( [4] => Astoria A [5] => NAK B [10] => NAK C )

 

How can I make the output just look like this:

Astoria A

NAK B

NAK C

Link to comment
https://forums.phpfreaks.com/topic/50247-array_diff-function/
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.