<?php $tests = [ "1...1", "2...2", "10...10", "(1.).(.1)", "1. . .1", "5.32..7", "3..(5.67)", "3. . 5.67", "3.14 . 1.41" ]; foreach($tests as $test) { echo PHP_EOL; }
Standard input is empty
1...1 = 10.1 2...2 = 20.2 10...10 = 100.1 (1.).(.1) = 10.1 1. . .1 = 10.1 5.32..7 = 5.320.7 3..(5.67) = 35.67 3. . 5.67 = 35.67 3.14 . 1.41 = 3.141.41