how can I assign a variable to hold an image in php
<p>I was just wondering if I could have a variable to hold an image, I'm using phpmailer to send email and I need an image to be attached to it,</p>

<p>so I was wondering if I could put the image in a variable and use </p>

<pre><code>$mailer-&gt;AddAttachment($image);
</code></pre>

<p>to send the email with attachment.</p>

<p>thanks for your help.</p>
