PHP知识总结(一)

1、PHP中“”和''的区别?

  双引号会执行:

  如 --> $name = 'hello';

     echo "the $name";

    输出:the hello

  单引号不会执行:

  如 --> $name = 'hello';

     echo 'the $name';

    输出:‘the $name

原文地址:https://www.cnblogs.com/tyzl/p/7064024.html