Home > Backend Development > PHP Tutorial > '"$id."' '$id' 这两种写法有啥差别啊

'"$id."' '$id' 这两种写法有啥差别啊

WBOY
Release: 2016-06-13 12:53:51
Original
884 people have browsed it

'".$id."' '$id' 这两种写法有啥区别啊?
insert into biao1(id) values('".$id."')

insert into biao1(id) values('$id')

这两种写法有啥区别啊?我测试了一下,好像都可以啊?盼高手解答


------解决方案--------------------
可以说没区别。。看你喜欢怎么写。。。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template