$obj=new getsms(); $obj->user="sms*****"; $obj->pass="ued9ltdh"; $obj->act="all"; $array = $obj->get(); print $array[0] ["txt"]; print $array[0]["suma"]; print $array[1] ["txt"]; print $array[1]["suma"];