- str_replace: documentation ( source)
- str_pad: documentation ( source)
- define: documentation ( source)
<?php
if ( ! defined('PHP_EOL')) {
define('PHP_EOL', "\n");
}
foreach (array('67585', '489382995463342') as $test) {
echo str_pad(str_replace('','',$test), 20, '0', STR_PAD_LEFT), PHP_EOL;
}