aboutsummaryrefslogtreecommitdiff
path: root/public/test/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/test/index.php')
-rw-r--r--public/test/index.php24
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