开发者

Quick formatting error - PHP

开发者 https://www.devze.com 2023-03-26 03:55 出处:网络
if (isset($_GET[\'z\'])) { $file = $file .\"-\" ($_GET[\'z\']; } Can someone tell me what is wro开发者_如何学Gong with my formatting?
 if (isset($_GET['z'])) {
 $file = $file ."-" ($_GET['z'];
 }

Can someone tell me what is wro开发者_如何学Gong with my formatting?

Thanks


 if (isset($_GET['z'])) {
      $file = $file . "-" . ($_GET['z']);
 }

you're missing one dot and one )

better one is

 if (isset($_GET['z'])) {
      $file .= "-" . $_GET['z'];
 }
0

精彩评论

暂无评论...
验证码 换一张
取 消