Skip to content

Instantly share code, notes, and snippets.

@cirpo
cirpo / gist:505528
Created August 2, 2010 23:41 — forked from odracci/gist:505473
append a carachter after n carachters
<?php
$number = '0123456789394872394';
$match = array();
preg_match_all('/(.{1,3})/', $number, $match);
$res = implode(' ', $match[0]);
var_dump($res);
?>
lab:
lab1:
name: S.C. Laboratorio Istocompatibilità IBMDR
lab2:
name: S.C. Laboratorio di genetica umana
project:
p1:
title: Analisi dei dati HLA del Registro Italiano di Donatori di Midollo Osseo e dei pazienti
description: