Jump to content

[SOLVED] Convert Text Into Abbreviation?


random1

Recommended Posts

Actually, it works even better with the PREG_SPLIT_NO_EMPTY flag:

 

<?php
$keywords = preg_split( "/([^A-Z])/", "High-Performance Instrumented Airborne Platform for Environmental Research", -1, PREG_SPLIT_NO_EMPTY);
echo implode("", $keywords);

 

:D  Shortens $keywords by a LOT.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.