if(//) { $number= 1; $iteration = $1; $string .= '' while ( $iteration-- ); } print $string;