1--TEST-- 2String conversion with multiple decimal points 3--FILE-- 4<?php 5function test($str) { 6 echo "\n--> Testing $str:\n"; 7 var_dump((int)$str); 8 var_dump((float)$str); 9 var_dump($str > 0); 10} 11 12test("..9"); 13test(".9."); 14test("9.."); 15test("9.9."); 16test("9.9.9"); 17?> 18===DONE=== 19--EXPECTF-- 20 21--> Testing ..9: 22int(0) 23float(0) 24bool(false) 25 26--> Testing .9.: 27int(0) 28float(0.9) 29bool(true) 30 31--> Testing 9..: 32int(9) 33float(9) 34bool(true) 35 36--> Testing 9.9.: 37int(9) 38float(9.9) 39bool(true) 40 41--> Testing 9.9.9: 42int(9) 43float(9.9) 44bool(true) 45===DONE===