$len = count($mojaVar); for( $i=0; i< $len; $i++){ echo $len; }