Here's a simple way way to convert a number to an ordinal number I created: $i the number to convert. Put this inside a for loop if you need to populate an array.
![Online Online](/uploads/1/2/5/4/125405587/170860453.jpg)
The reason the bitwise AND ('&') operator works to determine whether a number is odd or even is because odd numbers expressed in binary always have the rightmost (2^0) bit = 1 and even numbers always have the 2^0 bit = 0. So if you do a ' 1 & $num', it will return zero if the number is even (since xxxxxxx0 the even number in binary and 00000001 the 1) don't share any bits, and will return 1 if the number is odd (xxxxxx1 and 000001).
A clever way of doing things, but $num% 2 would work as well i think:).
![Derivadas e integrales Derivadas e integrales](http://universoguia.com/wp-content/uploads/2011/03/integrales.bmp)
Formulario de derivadas e integrales.
Tabla de Integrales. (PUEDE SUMARSE UNA CONSTANTE ARBITRARIA A CADA INTEGRAL) x' dx = 1. S dr = log| o|. No information is available for this page.Learn why.