sort array data without duplicate : i make twitter bot using codebird

I want to sort the data status in php array without duplicates , line by line (urls media /remote file links)

this my code

        require_once ('codebird.php');
`\Codebird\Codebird::setConsumerKey("pubTRI3ik5hJqxxxxxxxxxx",` `"xxxxxS6Uj1t5GJPi6AUxxxxx");`

    $cb = \Codebird\Codebird::getInstance();

`$cb->setToken("xxxxxxx-aVixxxxxxxxxX5MsEHEK",` `"Dol6RMhOYgxxxxxxFnDtJ6IzXMOLyt");`
 

    $statusimgs = array (
    	"/images.com/hfskehfskea33/jshdfjsh.jpeg",
    "/pic.images.com/SDjhs33/sZddszf.jpeg",
    "/pic.images.com/dfggfd/dgfgfgdg.jpeg",
    "//pic.images.com/xgxg/xdgxg6.jpeg",
    );



    $params = array(
      'status' => 'halo my ststus',
      'media[]' => $statusimgs[array_rand($statusimgs)]
    );

    $reply = $cb->statuses_updateWithMedia($params);






initially i use random array , but this can make duplicate photo,,,
i want to sort link remote files from first line to last, i have 1-100 link images to upload on twitter from remote file methot , one by one when script execute manual or with cron .i want set cron every 60s , 60s 1 photo tweet.
please help
