format data asssist result as phone number
I apologize if this isn't the appropriate place to ask this question, but I've tried answers from other forums and they don't seem to work with the Data Assist repeating table i have.
I need to format a phone and fax number (all domestic and 10 digit) to display as ###-###-####. My client updates this database often and does not want to change from a simple "Phone" field, to "Area" - "Pre" - "Last".
Is there someway for me to format the display of the phone and fax to add the "-"?
Here is the code from my repeating table
<?php echo phn_num($row_WADAroster['phone']); ?>
<?php echo phn_num($row_WADAroster['fax']); ?>
Again, sorry if this is a stupid question, I'm not very good with php, and the functions I found on php forums, I couldn't get to work with DA.
Thanks