Thanks, helps a lot!!
[]´s Felipe
Felipe Desiderati [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I need a simple function that takes a string and formats
with a generic mask. Like this example above:
$string1 = 12345678
$string2 = 11062003
echo format_string
Felipe Desiderati [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I need a simple function that takes a string and formats
with a generic mask. Like this example above:
$string1 = 12345678
$string2 = 11062003
echo format_string (#.###.###-#, $string1); // -- Returns 1.234.567-8
echo
2 matches
Mail list logo