Codex tools: Log in / create account
This function is used to get the query string when a user performs a search on the site. It returns the query string rather than displaying it, as the the_search_query() function does.
Examples of the different usage methods.
<?php the_search_query(); ?>
OR
<?php echo get_search_query(); ?>