i am having difficulty making a 2d array that prints integers from 0 - 99 in all odd numbers. I can make it print in multiples of three, but not only odd numbers. Whay can i not do this? Can anyone give me a nit or help?

Please be more specific about your problem.
Hope the below code in your solution

<?php
for($i = 0; $i<=99; $i++)
{
	if($i%2)
	echo $i."&nbsp;";
	if($i%18 == 0 && $i!=0) echo "<br>";
}
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.