| 
	
 | 
 Posted by Al13n on 06/11/98 11:31 
"Al13n" <al13n@theprawn.com> wrote: 
>I have a class I want to apply to the replacement in a preg_replace 
>routine.  While I can apply a function to this output with the /e flag, I 
>can't seem to get classes to work, I get a "non-static method ... cannot be 
>called statically" error, but I'm not entirely sure what to make of it. 
 
After fiddling with this far too long, I've finally found the problem--I 
needed to escape the $ before the class name when working with the /e flag 
in preg.  So \$makeTime->makeTime('... works perfectly. 
 
Finally!
 
  
Navigation:
[Reply to this message] 
 |