开发者

Quick formatting error - PHP

 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜