My favourite use of this function is converting a string to an array, trimming each line and removing empty lines:
<?php
$array = array_filter(array_map('trim', explode("\n", $string)), 'strlen');
?>
Although it states clearly that array keys are preserved, it's important to note this includes numerically indexed arrays. You can't use a for loop on $array above without processing it through array_values() first.