Skip to content

Instantly share code, notes, and snippets.

/**
* @param Integer $N
* @return Integer
*/
function getRepeatDigital( $N ){
$N = (string)$N ;
$dList = str_split( $N, 1);
for ($i=0; $i < strlen($N); $i++) {
$nowD = $dList[$i];
$计数 = 1;