如何在url中使用单个字符串var,而不是多个,当推到php的东西


how to use single string var in url instead of multple when pushing something to php?

如何设置PHP在url: ex中使用单个字符串而不是下面的代码

if ( $_GET['api_img_size'] == 'small' ) { ....

就用isset()

if ( isset( $_GET['small'] ) ) {
  //?small or ?small=1 or ?small=WHATEVER
  // do stuff
}
if ( isset($_GET['small']) ) { ....