Added array search
added php doc