PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$test = '123456789';
//I want it to be changed to 123-45-6789
?>
I want to know how to do this because the value of test is comming from the user from a post on a form, and I need it to be in the form of XXX-XX-XXXX in order for it to match up with the records already in the database.