how do you setup PHP to do use single string in url: ex just ?small instead of the code below
if ( $_GET['api_img_size'] == 'small' ) { ....
but with ?small do the same thing as the code above
how do you setup PHP to do use single string in url: ex just ?small instead of the code below
if ( $_GET['api_img_size'] == 'small' ) { ....
but with ?small do the same thing as the code above
Just use isset()
if ( isset( $_GET['small'] ) ) {
//?small or ?small=1 or ?small=WHATEVER
// do stuff
}