Search
 
SCRIPT & CODE EXAMPLE
 

PHP

LongestWord

<?php 

function LongestWord($sen) {

  $words = explode(" ", $sen);
  $longestWord = "";
  for($i = 0; $i < count($words); $i++){
    if(strlen($longestWord) < strlen($words[$i]) && !preg_match("/[W]/", $words[$i])){
      $longestWord = $words[$i];
    }
  }
  return $longestWord;

}
Comment

PREVIOUS NEXT
Code Example
Php :: How to use Live web server chrome extension with Laravel 
Php :: typo3 add backend skin 
Php :: load player avatar url 
Php :: Who is known as the father of PHP? 
Php :: ReflectionException: Class "MagentoFrameworkAppHttpInterceptor" does not exist in /bitnami/magento/vendor/magento/framework/Code/Reader/ClassReader.php:34 
Php :: laravel {{}} not being rendered 
Php :: php default argument 
Php :: Yii2 GridView Filtering on Relational Column 
Php :: how to include only post variable from another file php 
Php :: Date and time Asia karachi php 
Php :: Laravel database insert with combining array and string 
Php :: use the content to store in variable in wp 
Php :: java script clear rectangle 
Php :: larqavel migration 
Php :: objeto php em sessão 
Php :: MySQL eqSql Connection 
Php :: update php version of particular domain on ubuntu 
Php :: what-is-diference-wp-get-attachment-url-wp-get-attachment-src-get-post-thumb 
Php :: cors laravel 
Php :: laravel vu3 
Php :: php href variable in javascript alert 
Php :: php linkify text 
Php :: @hasSection 
Php :: same title 2 gigs are allowed in fiverr 
Php :: how to disable the plugins and theme editor 
Php :: wc php free shipping function 
Php :: TypeError IlluminateAuthSessionGuard::login(): Argument #1 ($user) must be of type IlluminateContractsAuthAuthenticatable 
Php :: php delete al lsession 
Php :: Class PHPUnit_Util_Log_TeamCity does not exist 
Php :: laravel view 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =