Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get first letter of each word

$words = explode(" ", "Community College District");
$acronym = "";

foreach ($words as $w) {
  $acronym .= $w[0];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #letter #word
ADD COMMENT
Topic
Name
5+2 =