LMimo
11-13-2007, 04:12 PM
I want to output a random number (1 to 40) and to output an image associated with the number.
I have sorted the first part with...
<![CDATA[$this->post['message'] = preg_replace('/\[picturenumber\]/i',mt_rand(1,40),$this->post['message']);]]>
But, I am unsure of how to use preg_replace to also add the associated image. Any ideas?
Thankyou
I have sorted the first part with...
<![CDATA[$this->post['message'] = preg_replace('/\[picturenumber\]/i',mt_rand(1,40),$this->post['message']);]]>
But, I am unsure of how to use preg_replace to also add the associated image. Any ideas?
Thankyou