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

  双引号会执行:

  如 --> $name = 'hello';

     echo "the $name";

    输出:the hello

  单引号不会执行:

  如 --> $name = 'hello';

     echo 'the $name';

    输出:‘the $name

posted on 2017-06-22 11:26  依米妮  阅读(91)  评论(0编辑  收藏  举报