Which of these code will be faster?
$temp = $_REQUEST[\'s\'];
or
if (isset($_GET[\'s\'])) {
$temp = $_GET[\'s\'];
}
else
I'd suggest using $_POST
and $_GET
explicitly.
Using $_REQUEST should be unnecessary with proper site design anyway, and it comes with some downsides like leaving you open to easier CSRF/XSS
attacks and other silliness that comes from storing data in the URL.
The speed difference should be minimal either way.