//Retrieve boolean value from query string $isActive = JRequest::getBool('active', false); //Returns true if the query string contains "active=1", false otherwise
//Retrieve boolean value from POST data $isMailingList = JRequest::getBool('mailing_list', false, 'POST'); //Returns true if the POST data contains "mailing_list=1", false otherwise
//Retrieve boolean value from request header $isAuthenticated = JRequest::getBool('X-Authenticated', false, 'HEADER'); //Returns true if the request header contains "X-Authenticated: 1", false otherwiseThis method is part of the Joomla CMS package library.