Home  >  Article  >  php教程  >  Initialize the current platform

Initialize the current platform

WBOY
WBOYOriginal
2016-08-31 08:40:571219browse

$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.

Statement:
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
Previous article:apache configurationNext article:apache configuration