summaryrefslogtreecommitdiff
path: root/tests/code/str-replace.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/code/str-replace.php')
-rw-r--r--tests/code/str-replace.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/code/str-replace.php b/tests/code/str-replace.php
new file mode 100644
index 0000000..f02f25e
--- /dev/null
+++ b/tests/code/str-replace.php
@@ -0,0 +1,5 @@
+<?php
+
+$arr = ['welcome', 'hello', 'goodbye'];
+
+print_r(str_replace('e', '@', $arr)); \ No newline at end of file