Home > php教程 > php手册 > body text

Initialize the current platform

WBOY
Release: 2016-08-31 08:40:57
Original
1226 people have browsed it

$plat=!empty($_GET['P'])?$_GET['P']:"front"; Distinguish between front and back. Use P to divide front and back. The initialization default value is front.

? : It is the ternary operator $plat=!empty($_GET['P'])?$_GET['P']:"front"; which means if $_GET['P'] has a value, no If it is empty, assign it to $plat. If $_GET['P'] is empty, assign 'front' to $plat.

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template