Storing image in variable?

How can I store an image inside a variable?

I have a simple html form


<html>
<head>
</head>
<body>
<form action="filerz.php" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Form</legend>
<label for="file">File:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>

When the user submits the image I want to be able to use it for processing it, but how can I store it in a variable, I tried with _POST but that does not work

Use $_FILE as in print_r($_FILE) to see your options.

Sorry about the late response and thank you, that worked for what I needed to do. :slight_smile: