GetLongestString - 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 GetLongestString.php

  1. <?php
  2. function GetLongestString() {
  3.         return max(array_map('strlen', func_get_args()));
  4. }
  5.  
  6. echo GetLongestString('dfdf', 'AE$dfrrr', '12334df', '', null, 'dfdfd');
File Description
  • GetLongestString
  • PHP Code
  • 19 Oct-2019
  • 162 Bytes
You can Share it: