giveWorkIdState($workId); } } echo $result; } catch (Exception $e) { echo $e->getMessage(); } }