$request_uri = $_SERVER['REQUEST_URI']; preg_match('/\=([a-z]+)/i', $request_uri, $matches); if ($matches[1] == 'siyah') echo 'siyah';