echo html_writer::link(new moodle_url('/course/view.php', array('id' => 5)), 'My Course');
echo html_writer::link(new moodle_url('/mod/resource/view.php', array('id' => 10)), 'My Resource');
echo html_writer::link(new moodle_url('/user/profile.php', array('id' => 2)), 'Jane Doe');This will link to Jane Doe’s profile page. In summary, the moodle_url param is an essential function in Moodle that helps construct URLs for linking to different resources within the platform. It is part of the core libraries and available for use in core code.