Narrative:

Training flight from class D airport beneath class B (phx). Flew to A39 to practice takeoff and landings. As we were returning over chd at 2;700 ft MSL we ended up further west than we intended. We were also about 2;700 MSL when falcon tower told us that we were about ready to penetrate the floor of the phx class B. We did a quick right turn and descended to avoid class B airspace.

Google
 

Original NASA ASRS Text

Title: A C172 instructor reported narrowly missing PHX Class B airspace thanks to a warning from FFZ Tower.

Narrative: Training flight from Class D airport beneath Class B (PHX). Flew to A39 to practice takeoff and landings. As we were returning over CHD at 2;700 FT MSL we ended up further west than we intended. We were also about 2;700 MSL when Falcon Tower told us that we were about ready to penetrate the floor of the PHX Class B. We did a quick right turn and descended to avoid Class B airspace.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.