Storing image in variable?

How can I store an image inside a variable?

I have a simple html form

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

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: