* array( * array( 'Zuk-', 'kerstück' ), * array( 'Zucker-', 'stück' ), * ) * * * You should always also include the concatenation character in the split * words, since it might change depending on the used language. * * @param mixed $word * @return void */ public function splitWord( $word ) { $splits = array(); for ( $i = 1; $i < iconv_strlen( $word, 'UTF-8' ); ++$i ) { $splits[] = array( iconv_substr( $word, 0, $i ) . '-', iconv_substr( $word, $i ) ); } return $splits; } } ?>