<?php // php >= 5.5 ini_set('intl.use_exceptions', true); try { $curr = new ResourceBundle('doError', __DIR__); } catch (IntlException $e) { echo $e->getMessage(); }