features – Can not display an image via PHP in WordPress

I have a strange problem. When I try to enter the source code of an image tag with the help of PHP, the following error is displayed in the. inspector.


this piece of code gives me the correct URL, verified by seeing the CPanel, pasting and copying the address, but when i try to grab it via php, the image n & # 39; 39; is not displayed.

$ image = wp_get_attachment_image_src ($ post_thumbnail_id);
// echo ($ image[0])
?>
<img src = "http://wordpress.stackexchange.com/"alt =" ">

The next thing I did was an image echo[0] and he gave me the URL of the image, I copied it and pasted it into the tag and that is when it m & # 39; 39, showed the picture


I saw the page in the Incognito window and I did not show the picture either.

Clues?