<?php echo (int) "0xf" + 2.8,"\n"; // 2.8 echo (int) ("0xf" + 2.8),"\n"; // 17 echo intval("0xf", 16) + (int) 2.8,"\n"; // 17 echo intval("0xf", 0) + (int) 2.8; // 17
You have javascript disabled. You will not be able to edit any code.