[ create a new paste ] login | about

Link: http://codepad.org/2aFPZqEe    [ raw code | output | fork ]

PHP, pasted on Dec 28:
1
2
3
4
5
<?php
$s = '2014952392';
$s = substr($s, 0, 3) . '-' . substr($s, 3, 3) . '-' . substr($s, 6);

echo $s;


Output:
1
201-495-2392


Create a new paste based on this one


Comments: