$secure = SOME_NO ; $unsecure = substr($secure,3); $order_id = pow(substr($unsecure, 0, -3), 1/3); $order_id = ceil($order_id);