Print Alphanumeric with atleast 1 numeric (PHP)

How to print 3 letter Alphanumeric with atleast 1 character as Numeric.

<?php

$alphanumeric= array(“0″,”1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”A”,”B”,”C”,”D”,”E”,”F”,”G”,”H”,”I”,”J”,”K”,”L”,”M”,”N”,”O”,”P”,”Q”,”R”,”S”,”T”,”U”,”V”,”W”,”X”,”Y”,”Z”);

for($i=0; $i<36; $i++)
{
for($j=0; $j<36; $j++)
{
for($k=0; $k<36; $k++)
{

if($i>=’10’ && $j>=’10’ && $k>=’10’)
{
}
else
{
$newword=$alphanumeric[$i].$alphanumeric[$j].$alphanumeric[$k];
echo “$newword<br>”;
}

}
}
}

?>

Leave a Comment