Reply to Re: preg_replace -- classes in replacement

Your name:

Reply:


Posted by Al13n on 10/13/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!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация