Reply to Re: beginner question on multidimensional arrays

Your name:

Reply:


Posted by crucialmoment on 01/31/06 14:10

Here's an example using preg_replace

$pattern[0] = '/\/';
$pattern[1] = '/\}/';
$pattern[2] = '/\$/';
$pattern[3] = "/\%/";
$replacement[0] = '{';
$replacement[1] = '}';
$replacement[2] = '$';
$replacement[3] = '%';
$myvar = preg_replace($pattern, $replacement, $myvar);

$pattern is the array of text or characters to search for.
$replacement is what to replace with
In this example, some characters are replaced with their html escape
codes

[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

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