Pogledajte određenu poruku
Staro 17. 07. 2014.   #4
Bojsi
član
Certified
 
Datum učlanjenja: 24.01.2007
Poruke: 92
Hvala: 1
650 "Hvala" u 15 poruka
Bojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished road
Default

Nesto ne ide. Ne znam gde gresim, nista mi izraz ne nalazi. Mozda neko zna gde gresim. Vec je kasno pa se nadam da nisam zaboravio i ono sto sam znao.

PHP kôd:
$s '<php:page><php:button>Test</php:button></php:page>';

$patterns[] = "|\<php:(.*?)\>(.*?)\</php:\1\>|s";        
$replaces[] = "X";

echo 
preg_replace($patterns$replaces$s); 
Bojsi je offline   Odgovorite uz citat
110 članova zahvaljuje Bojsi za poruku:
aaawamois, aczapiewskshain, aeprocaccnath, aettermanmaudl, allen4jim, alovermannmiche, anorthfacemens, aparkagoose, apelmanhora, areraodel, arinalva, aringascarl, calmoncenath, campanellawiley, cbuynecklaces, cellocchiwino, cfacecheap, cfakecoach, cheapestcheapes, christianchrist, cteciuccihenr, dgendant, dorflesnersalva, dyejidemcki, eambleclai, ebeisermarq, ebuyaccessories, eclawgesrayf, eduplerjerr, efaceface, emergelhous, enhaldermjona, eorsearth, eosuitergilb, esbissonetulyss, eskuhlemarco, fuppfide, hschherb, iaidimarc, ichristianheels, ihybhatiatimot, ijoachimteod, inejennieroxan, ioltmeierlynd, ionpanfilprest, istriblingmoshe, kbierskiaria, kdlakrick, klockelmo, komalakowrein, ktrackeisid, kwinskiiren, larholburt, lartorellozadam, ldiellobryo, lerolees, linmonclerblack, llpiccillorache, menicomeodett, mgronmonte, mnachambevict, naginalme, nbereznycedr, ngreenbackmarti, nieningshan, nincenorah, norbinshan, nordinoscot, nramanyjule, nrtmanwenwe, nsveentreva, nteilingayan, nurdinmitc, nydencesa, obertoerro, ofashionwigs, oiezarconepearl, oitchmorerowe, okristoffflor, osjoem, pcheapface, piehlphilr, prdpala, qlspraquemars, racmurraylize, rahrexv, redmonstonwarne, rkunaroyal, rlamryan, rlaverestep, rldogarrreyna, rlingeriebuy, rlmaherrusse, rslerkimp, ruhnerrenek, rumbersjoey, rwaversteve, sceeashcons, ssourstyson, stensmaik, taslattershaq, tatttobi, tinregestevalen, tovanderarmodes, twaratmarc, udiscountbags, uolyneuxmarc, wholesaleprices, yaircorytiffany, yrleyange