How to redirect to a website using PHP?

As through
header('Location: /');
redirect to a link with an anchor:

is there any alternatives how can I do that?
June 10th 19 at 16:13
1 answer
June 10th 19 at 16:15
To specify http or https

Other varianty via js
window.location = "";

Using html and tag meta
<meta http-equiv="refresh" content="0;">

Find more questions by tags PHP