Can we use PHP to get a screenshot of a website and save it in the computer?
You cannot do it.
You have to render the website. There is no rendering capability built-in in PHP.
But if you refer this thread, you will find a solution.
It looks like you're new here. If you want to get involved, click one of these buttons!