Created
November 15, 2013 20:35
-
-
Save johnregan3/7491125 to your computer and use it in GitHub Desktop.
Removing duplicate brightcove ID's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$playlist = array( | |
[0] => WP Post Object | |
[ID] => 1; | |
[_brightcove_id] = 1 | |
[1] => WP Post Object | |
[ID] => 2; | |
[_brightcove_id] = 2 | |
[2] => WP Post Object | |
[ID] => 3; | |
[_brightcove_id] = 1 | |
); | |
//If duplicate _brightcove_id, remove latter array key (eg. [2]) |
westonruter
commented
Nov 15, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment