Cytat(pieto @ 2005-09-09 00:04:11)
$stronawiki2[0] = preg_replace( '@<table class="gallery" cellspacing="0" cellpadding="0">(.*?)</table>@s', ''.GalleryTAB("$1").'', $stronawiki2[0] );
Jeśli chcesz wyświetlić ciąg znaków:
<?php
$stronawiki2[0
] = preg_replace( '@<table class="gallery" cellspacing="0" cellpadding="0">(.*?)</table>@s', '.GalleryTAB('."$1".').', $stronawiki2[0
] ); ?>
jeśli GalleryTAB() to funkcja:
<?php
$stronawiki2[0
] = preg_replace( '@<table class="gallery" cellspacing="0" cellpadding="0">(.*?)</table>@s', ''.GalleryTAB
("$1").'', $stronawiki2[0
] ); ?>