Home > Backend Development > PHP Tutorial > 在字符串中如何保留$

在字符串中如何保留$

WBOY
Release: 2016-06-23 14:20:45
Original
1251 people have browsed it

$str="百度影音$$1024高清国语中字版$bdhd://1183200391|E067EEAB1560E1FDCE2F8927625E4AEF|钢铁侠3.HD1024高清国语中字.rmvb$bdhd#1024高清中英双字版$bdhd://1086150825|D54A605693F6EFEB6EB6EE212C618CA1|钢铁侠3.BD1024高清中英双字.rmvb$bdhd#1280超清中英双字MKV版$bdhd://2561208627|C2E6E4ECCEE8BB364D92F9A1201E99B1|钢铁侠3.BD1280超清中英双字.mkv$bdhd#1280高清中英双字版$bdhd://1479559068|AFFECBC57E728AA3D335741CB857D0C9|钢铁侠3.BD1280高清中英双字.rmvb$bdhd$$$迅播高清$$1024高清国语中字版$gvod://xlj.2tu.cc:8089/061C15A782E45412F4DF7AB71D511DA6DE969A70/1183200391/[迅雷下载www.2tu.cc]钢铁侠3.HD1024高清国语中字.rmvb$gvod#1024高清中英双字版$gvod://xlj.2tu.cc:8089/5F10D84070A1D5854FA855F51D7B0AAB661FC316/1086150825/[迅雷下载www.2tu.cc]钢铁侠3.BD1024高清中英双字.rmvb$gvod#1280超清中英双字MKV版$gvod://xlj.2tu.cc:8089/1776E72DB88ECAA725270302A8F508760D85EB8F/2561208627/[迅雷下载www.2tu.cc]钢铁侠3.BD1280超清中英双字.mkv$gvod#1280高清中英双字版$gvod://xlj.2tu.cc:8089/C91DCC7E81D9CE99C1103AFB015FB9A6D5B475A9/1479559068/[迅雷下载www.2tu.cc]钢铁侠3.BD1280高清中英双字.rmvb$gvod";

我想保留$为什么输出就都不见了 需要加什么


回复讨论(解决方案)

$str='$1$2$3';

使用单引号就好了,不涉及变量的字符串就使用单引号嘛。

加引号....

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