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'];
}
精彩评论