Re: [PHP] Re: How to format a strign with a generic mask??

2003-06-12 Thread Felipe Desiderati
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

[PHP] Re: How to format a strign with a generic mask??

2003-06-11 Thread Hugh Bothwell
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