title: Retrive PHP function confusion
body: <p>The project i'm working right now require to use some color randomization. I have atleast 20 asset  (text,shape,line,polygon ...etc) that require color randomization ...so i decided to store the randomization RGB in a function so i could keep reusing it and make the PHP file smaller but it didn't work out as expected</p>
  <pre><code>&lt;?php
  header ('Content-Type: image/jpeg'); // make PHP when access .jpg
  
  $im = imagecreatetruecolor(100, 100); // allocate image with 100 width and 100 height
               
  function randomrgb() {  
  imagecolorallocate($im, rand(0,255), rand(0,255), rand(0,255)); // generate 0 between 255
  }
  
  $cbc = randomrgb(); // store randomization on variable first  i do not know how to call functions directly 
  
  imagefill($im, 0, 0, $cbc); // fill the background with $cbc which is equal to random RGB function
  
  
  imagejpeg($im); 
  imagedestroy($im);
  ?&gt;
  </code></pre>
  <p>I expected the background color to become random but it always black also i do not know how to call the function directly here <code>imagefill($im, 0, 0, $cbc);</code>  without storing it first on variable something like     <code>imagefill( $im, 0, 0, randomrgb(); );</code>  i know it possible but i just do not know how .. sorry in advance if this is confusing</p>