php use try catch like c++