Skip to content

Instantly share code, notes, and snippets.

@gulgulia17
Last active January 28, 2021 16:40
Show Gist options
  • Select an option

  • Save gulgulia17/094ca02b5136e7079627a816f94c53ef to your computer and use it in GitHub Desktop.

Select an option

Save gulgulia17/094ca02b5136e7079627a816f94c53ef to your computer and use it in GitHub Desktop.
TO FIND THE DIVISIBLE NUMBER BY USE RINPUT
<?php
$number = 1234;
for($x=2;$x<$number/2;$x++)
{
echo $number % $x ? null : "<br>$x";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment