zoukankan
html css js c++ java
PHP单引号和双引号的区别
最近一段时间接触到PHP, 看别人写的代码,有关echo语句,后面输出的字符串,有的使用单引号,有的使用双引号。自己特地测试了一下有什么区别: 当用echo语句的时候:单引号内部的变量不会执行,双引号会执行。如: $name = 'hello'; echo "the $name"; 会输出 the hello 而如果是单引号 $name = 'hello'; echo 'the $name'; 会输出 the $name echo语句用到的时候主要区别就是这个。
查看全文
相关阅读:
SPOJ GSS4 Can you answer these queries IV ——树状数组 并查集
SPOJ GSS3 Can you answer these queries III ——线段树
SPOJ GSS2 Can you answer these queries II ——线段树
SPOJ GSS1 Can you answer these queries I ——线段树
BZOJ 2178 圆的面积并 ——Simpson积分
SPOJ CIRU The area of the union of circles ——Simpson积分
HDU 1724 Ellipse ——Simpson积分
HDU 1071 The area ——微积分
HDU 4609 3-idiots ——FFT
BZOJ 2194 快速傅立叶之二 ——FFT
原文地址:https://www.cnblogs.com/wanyakun/p/3403188.html
最新文章
2017-06-29(cat tac more less head tail)
linux mysql 修改 UTF-8编码
HTTP常用方法
HTTP常用状代码
通过EXPLAIN分析低效SQL的执行计划
mysq开启慢查询
Linux安装mysql 在/etc下没有my.cnf 解决办法
linux 安装mysql
linux mysql 忽略大小写
linux mysql下忘记root密码解决办法
热门文章
BZOJ 4259 残缺的字符串 ——FFT
BZOJ 4503 两个串 ——FFT
BZOJ 3527 [Zjoi2014]力 ——FFT
基数排序
SPOJ QTREE3 Query on a tree again! ——Link-Cut Tree
SPOJ QTREE Query on a tree ——树链剖分 线段树
POJ 1741 Tree ——点分治
SPOJ GSS7 Can you answer these queries VII ——树链剖分 线段树
SPOJ GSS6 Can you answer these queries VI ——Splay
SPOJ GSS5 Can you answer these queries V ——线段树
Copyright © 2011-2022 走看看