PHP中的反斜杠-是什么意思? [英] Backslash in PHP -- what does it mean?

查看:95
本文介绍了PHP中的反斜杠-是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚看到在对PHP对象的引用中使用了反斜杠,对此感到很好奇(我以前从未见过).是什么意思?

I just saw the use of a backslash in a reference to a PHP object and was curious about it (I have never seen this before). What does it mean?

$mail = new SendGrid\Mail();

如果您感到好奇,请访问

If you're curious, here's SendGrid's documentation.

推荐答案

这是因为他们使用的是 PHP名称空间.自PHP 5.3起,命名空间是新的.

It's because they're using PHP namespaces. Namespaces are new as of PHP 5.3.

这篇关于PHP中的反斜杠-是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆