temp - 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 temp.php
- <?php
- $column_count = 7;
- function line_count($t) {
- GLOBAL $column_count;
- $t .= '\n';
- $rv = 0;
- $p = strpos($t,'\n');
- while ($p >= 0) {
- $rv += ceil($p/$column_count);
- printf("\n%u", $rv);
- $prev = $p;
- $p = strpos($t,'\n',$p+1) - $prev;
- }
- return $rv;
- }
- printf("\nline_count:%u", line_count('abcde\nfghijklmno\nabc'));
- ?>
File Description
- temp
- PHP Code
- 24 Jan-2020
- 468 Bytes
You can Share it:
Latest PHP Pastes