$link = moodle_url('/mod/quiz/view.php', array('id' => 1234)); echo "Take Quiz";
$user_id = 5678; $link = moodle_url('/user/profile.php', array('id' => $user_id)); echo "View Profile";This code generates a URL to view the user profile for the user with an ID of 5678 and creates a hyperlink to it. The `moodle_url` function is part of Moodle's core library and can be found in the `lib/moodlelib.php` file.