Can I declare that a php function throws an exception?

Viewed 38143

Can I declare a function in php that throws an exception? For example:

public function read($b, $off, $len) throws IOException 
3 Answers
Related