Get type with link on PHP manual and generate style from array