<?php $sInput = '123/456'; list($sNo1, $sNo2) = explode('/', $sInput); $dResult = '!ep1 -rep ' . round(sqrt((float) $sNo1) * (float) $sNo2, 2); var_dump($dResult);
Standard input is empty
string(17) "!ep1 -rep 5057.28"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!