public static function arrayAppendString($array, $string = '', $format = '%1s%2s')
    {

        // Get to it
        foreach ($array as $k => $v) {
            $array[$k] = is_string($v) ? sprintf($format, $v, $string) : $v;
        }

        // Give
        return $array;
    }
public static function arrayAppendString($array, $string = '', $format = '%1s%2s')
    {

        // Get to it
        foreach ($array as $k => $v) {
            $array[$k] = is_string($v) ? sprintf($format, $v, $string) : $v;
        }

        // Give
        return $array;
    }
public static function arrayAppendString ( $ array , $ string = '' , $ format = '%1s%2s' ) { // Get to it foreach ( $ array as $ k => $ v ) { $ array [ $ k ] = is_string ( $ v ) ? sprintf ( $ format , $ v , $ string ) : $ v ; } // Give return $ array ; }
Append a string to the end of each element in a 2d array
Append a string to the end of each element in a 2d array