Say I have an array like this
$posts = array(
array('post_title'=>10, 'post_id'=>1),
array('post_title'=>11, 'post_id'=>2),
array('post_title'=>12, 'post_id'=>3),
array('post_title'=>13, 'post_id'=>4),
array('post_title'=>10, 'post_id'=>5)
);
How can I remove the first dimensional element if one of its 'post_title' or 'post_id' value is repeated?
Example:
Suppose we know that 'post_title' is '10' in two first dimensional elements.
How can I remove the repeated element from $posts? Thanks.