title: Php getting perfect square with condition
body: <p>How can get a perfect square of list of numbers except for integers that is a square of a previous integer in the list.</p>
  
  <p>for input of 30 following are the results:</p>
  
  <pre><code>1
  2
  3
  square
  5
  6
  7
  8
  square
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  square
  26
  27
  28
  29
  30
  </code></pre>
  
  <p>I can get the result only for perfect square but the issues is, i am also getting 16 as square. which it's not consider as square since 4 is already a square. Thanks.</p>