The purpose of this study is to evaluate the efficacy of erdafitinib in terms of overall response rate (ORR) in adult and pediatric participants with advanced solid tumors with fibroblast growth factor receptor (FGFR) alterations (mutations or gene fusions). It will also evaluate ORR in pediatric participants with advanced solid tumors and FGFR alterations.