You are here: Re: unexpected T_DNUMBER = HUH? « PHP Programming Language « IT news, forums, messages
Re: unexpected T_DNUMBER = HUH?

Posted by Colin Fine on 12/07/05 02:18

comp.lang.php wrote:
> Oh, one more thing: I replaced '\\1 ' with '$1' to prove that that
> could not have been the cause of the T_DNUMBER error:
>
> [PHP]
> // FIND THE PATTERN OF THE OLD VERSION
> $pattern='`^(\s*\*\s+\@version)\s*('.
> str_replace('/','\\/',preg_quote($oldversion)).')(.*)$`i';
> $contents = preg_replace($pattern, '$1 ' . $newversion . '$2',
> $contents);
> [/PHP]
>
> No errors! Even this produced no errors:
>
Justin told you the answer to that: the /e qualifier (that you're no
longer using). That qualifier means 'treat the pattern as a PHP
expression, and evaluate it'.

Colin

 

Navigation:

[Reply to this 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

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