Obscure NBA rules you didn’t know

If a player fouls out and there is nobody left to replace him, the player stays in the game. Any further fouls committed will result in a personal foul, technical foul and team foul.