float - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of float.php

  1. <?php
  2.  
  3. $array = ['amount'=>12.11];
  4.  
  5. echo json_encode($array, JSON_PRESERVE_ZERO_FRACTION | JSON_UNESCAPED_UNICODE);
  6.  
File Description
  • float
  • PHP Code
  • 24 Aug-2022
  • 116 Bytes
You can Share it: