Skip to content

Instantly share code, notes, and snippets.

@stefano-rs
Created April 13, 2016 19:36
Show Gist options
  • Save stefano-rs/f4871df48277714b216ee2cde56b7ae1 to your computer and use it in GitHub Desktop.
Save stefano-rs/f4871df48277714b216ee2cde56b7ae1 to your computer and use it in GitHub Desktop.
<?php
preg_replace('/([\d]{3})([\d]{3})([\d]{3})([\d]{2})/', '$1.$2.$3-$4', $order_info['custom_field'][$this->config->get('pagseguro_cpf')]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment