secure_url

The secure_url function generates a fully qualified HTTPS URL to the given path. Additional URL segments may be passed in the function's second argument:
<?php $url = secure_url('user/profile');

$url = secure_url('user/profile', [1]);