(PHP 4 >= 4.0.4, PHP 5, PHP 7)
Create a new image from the image stream in the string
resource imagecreatefromstring ( string $image )
imagecreatefromstring() returns an image identifier representing the image obtained from the given image. These types will be automatically detected if your build of PHP supports them: JPEG, PNG, GIF, WBMP, and GD2.
Parameters:
image
A