Matching "OFnnnnnn"
This is how you can match a order number with leading characters, in this case "OF", followd by 6 numbers, in a condition (IF), for instance "OF123456"
<?php
if(preg_match('/^OF[0-9]{6}$/', $post['order_number'])){
}
?>
Knowledge keywords: