Location: PHPKode > scripts > ICQ status tester > icq-status-tester/priklad.php
<?php
// priklady uin cisel
$icq_numbers = array( "2811537",
		    		  "3507466",
                      "125522049",
                      "245334232",
                      "243860586" );# moje vlastni


require_once("ICQStatus.php");

// vytvoreni objektu
$oICQ = new ICQStatus();

// probrani pole cisel
foreach( $icq_numbers as $icq_number ) {
     if( !$status = $oICQ->status( $icq_number ) ) // overeni statusu
     {
     	print_r($oICQ->$error);
        	break;
    	}
    	$status = explode(" ",$status);
    	echo 'UIN: '. $icq_number .' je '.$status[0] .' <img src="'.$status[1].'" alt="'.$status[0].'" /> - isOnline :'.$oICQ->isOnline($icq_number)." \r\n";
}

exit();
?>
Return current item: ICQ status tester