Ha ragione 13manuel84, ma se fai così, ricordati di aggiungere in coda all'array anche il numero stesso perchè altrimenti ti mancherebbe un divisore...ex:
se $num =20;
facendo il ciclo fino a $num/2 avresti
Array ( [0] => 1 [1] => 2 [2] => 4 [3] => 5 [4] => 10);

...dovresti aggiungere anche 20...
codice:
array_push($arrDivisori,$num);

Array ( [0] => 1 [1] => 2 [2] => 4 [3] => 5 [4] => 10 [5] => 20 )
Ciao