All pastes #769841 Raw Edit

Mine

public php v1 · immutable
·published 2007-11-11 18:34 UTC
rendered paste body
<?phpwhile($row = mysql_fetch_assoc($obj)) { // Soo first lets get number of the string.$enabled = FALSE;$push = "";for($i = 0; $i < strlen($row['NAME'])-1; $i++) if(ctype_digit($row['NAME']{$i}) && !$enabled)    $push .= (int)$row['NAME']{$i};     else break;// NOW LETS SEE IF IT IS IN ARRAY ALREADYif(!in_array($push,$arr)) {  $list[] = $row['NAME'];  $arr[] = $push }}?>