Gavin PHP - 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.
Result of php executing
Full code of Gavin PHP.php
- <?php
- $test = array('10.21', '59.56', '1:01.33', '3:43.12', '2:12:33');
- foreach($test as $row) {
- $one = sprintf("%08s", $row);
- $two = str_replace('000', '00:', $one);
- echo $one . '<br>';
- echo $two . '<br>';
- echo ltrim($row, ':0') . '<br><br>';
- }
- $testTime = '2:12:56';
- //echo sprintf("%08.10s", $testTime);
- //echo $time = sprintf("%08s", $testTime) . '<br>';
- //echo str_replace('000', '00:', $time);
File Description
- Gavin PHP
- PHP Code
- 16 Sep-2019
- 428 Bytes
You can Share it:
Latest PHP Pastes