Is there a function that would generate the url of a page? I would like it to accept the page title as a parameter and have it return the url for the page, taking into account whether or not "pretty permalinks" are being used.
<?php echo mystery_func('my_page_title'); //#=> http://localhost/?page_id=55 ?>
I saw the get_page_by_title function in the Codex, but it returns an object and I can't find where its methods/attributes are documented. Also, I saw the get_page_uri function but that just returns the page title given a page_id.