简体   繁体   English

php输出脚本需要修改

[英]Php output script need to modify

This script in php 这个脚本在PHP

$name = "\"".$line["name"]."\" ";

giving this output :- "namefromdb" 给这个输出:-“ namefromdb”

i want output like this :- namefromdb 我想要这样的输出:-namefromdb

No inverted commas 没有反逗号

If you're trying to get \\namefromdb\\ then use 如果您尝试获取\\ namefromdb \\,请使用

<?php
$name = '\\'.$line['name'].'\\';
?>

If you're trying to get just namefromdb then use 如果您只想获取namefromdb,请使用

<?php 
$name = $line['name'];
?>

You have to be more descriptive with your posts, explain what you're trying to do... and what you want the output to be... 您必须对自己的帖子进行更具描述性的解释,说明您要执行的操作...以及您希望输出的内容...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM