- var_dump: documentation ( source)
- array_shift: documentation ( source)
- explode: documentation ( source)
<?php
$cs = null;
$company = 'Orion Pharma AB';
$_t = explode(' ',$company);
$company = array_shift($_t);
$company = !empty($cs) ? $cs : $company;
var_dump($company);
?>