diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-10-04 05:10:51 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-10-04 05:10:51 +0200 |
commit | 67b20c49ec4e5efb4526fc64ef679dfb6dd41e30 (patch) | |
tree | 289a6da21e036b62c881bc505a079d5d64dc1c20 /public/test/index.php | |
parent | c3c4be4a4efd1404aad19797c15d2a9a6ffe29a6 (diff) | |
download | wcms-67b20c49ec4e5efb4526fc64ef679dfb6dd41e30.tar.gz wcms-67b20c49ec4e5efb4526fc64ef679dfb6dd41e30.zip |
2.8 auto-tag-update + help + tabs
Diffstat (limited to 'public/test/index.php')
-rw-r--r-- | public/test/index.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/public/test/index.php b/public/test/index.php new file mode 100644 index 0000000..5b778ee --- /dev/null +++ b/public/test/index.php @@ -0,0 +1,24 @@ + + +<?php + +$pattern = "/%%(\w*)%%/"; + +$string = "bla bla bld dd d , dfddddddsdsdf fzpapap %q dsq%%c%%dd % dsqqsd %% dsqq dsq sd %%c%%dsssssssssss dsqd %%coucouhibou%% fdsf fdsf fdsfsdfsdf "; + + + +preg_match_all($pattern, $string, $out); + +foreach ($out[0] as $key => $value) { + $replace = '^^ÔHYEAH BB££___'.$out[1][$key]. '_____§§§§§§'; + $string = str_replace($value, $replace, $string); + +} + + +var_dump($out); + +var_dump($string); + +?>
\ No newline at end of file |