Do I need to escape backslash in PHP?
echo 'ApplicationModelsUser'; # Prints "ApplicationModelsUser"
echo 'Application\Models\User'; # Same output
echo 'ApplicationModel'User'; # Gives "ApplicationModel'User"
So it's an escape character. Shouldn't I need to escape it (
) if I want to refer to ApplicationModelsUser
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…