Plain
echo (float)12,3;
means that you send two values ββfor the echo as a list of parameters, separated by commas. 12 and 3 , which are repeated together, look like 123 . You can repeat hundreds of things in one call, PHP doesn't mind.
echo (float)"12,3";
You send the string "12,3" for the echo after , sending it to the float . When it converts to float, it becomes 12, which you see printable.
source share