Reply to Re: Question about array syntax

Your name:

Reply:


Posted by noone on 03/23/06 21:05

sclemens420@hotmail.com wrote:

> On the PHP site on the preg_replace() function page (
> http://us3.php.net/manual/en/function.preg-replace.php ), example 1
> uses "@" signs in the regular expression members of the "search" array.
> On another PHP site (
> http://www.phpfreaks.com/phpmanual/page/function.preg-replace.html ),
> Example 5 is the same script except the regex array members use double-
> then single-quotes.

> Why?

> Both scripts seem to work the same. I can find no documentation on how
> the "@" sign affects how the regex is used.

> A link to explanatory documentation would be highly appreciated.

the "@" sign in the first example is used as the delimiter. In the second
example the delimiter is "/"

With regex - you can use almost any meta-character as a delimiter.

[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

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