i keep getting the error Parse error: syntax error, unexpected '['
for some strange reason and i really cant figure out why, heres my skype.class
<?php
class SkypeResolver {
function __construct($db) {
$this->db = new DB($db);
}
function get_ip($username) {
$str = $this->skypeurl();
$str .= $username;
$output = file_get_contents($str);
return $output;
}
function skypeurl() {
return $this->db->fetch_array($this->db->query("SELECT * FROM `settings` WHERE `ident`='skype-api-url'"))['val'];
}
}
?>
ive tried removing the "[" but it then throws another error which i fix which then leads to another error and so on... anyone got any ideas ?