Home
last modified time | relevance | path

Searched refs:replacement (Results 1 – 25 of 79) sorted by relevance

1234

/PHP-5.5/ext/ereg/tests/
H A Dereg_replace_basic_001.phpt19 $replacement = '[this is a replacement]';
34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
38replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a re…
42replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a re…
46replacement][this is a replacement][this is a replacement][this is a replacement][this is a replac…
54 string(74) "[this is a replacement] this contains some matches [this is a replacement]"
58 …tring(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replaceme…
62 string(74) "[this is a replacement] this contains some matches [this is a replacement]"
80 [this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a rep…
81 [this is a replacement]"
[all …]
H A Deregi_replace_basic_001.phpt19 $replacement = '[this is a replacement]';
34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
38replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a re…
42replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a re…
46replacement][this is a replacement][this is a replacement][this is a replacement][this is a replac…
54 string(74) "[this is a replacement] this contains some matches [this is a replacement]"
58 …tring(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replaceme…
62 string(74) "[this is a replacement] this contains some matches [this is a replacement]"
80 [this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a rep…
81 [this is a replacement]"
[all …]
H A Dereg_replace_basic_002.phpt5 /* Prototype : proto string ereg_replace(string pattern, string replacement, string string)
11 $replacement = 'r';
13 var_dump(ereg_replace('A', $replacement, 'a'));
14 var_dump(ereg_replace('[A-Z]', $replacement, '0'));
15 var_dump(ereg_replace('(a){4}', $replacement, 'aaa'));
16 var_dump(ereg_replace('^a', $replacement, 'ba'));
17 var_dump(ereg_replace('b$', $replacement, 'ba'));
18 var_dump(ereg_replace('[:alpha:]', $replacement, 'x'));
H A Deregi_replace_basic_002.phpt5 /* Prototype : proto string eregi_replace(string pattern, string replacement, string string)
11 $replacement = 'r';
13 var_dump(eregi_replace('[A-Z]', $replacement, '0'));
14 var_dump(eregi_replace('(a){4}', $replacement, 'aaa'));
15 var_dump(eregi_replace('^a', $replacement, 'ba'));
16 var_dump(eregi_replace('b$', $replacement, 'ba'));
17 var_dump(eregi_replace('[:alpha:]', $replacement, 'x'));
H A Dereg_replace_error_001.phpt5 /* Prototype : proto string ereg_replace(string pattern, string replacement, string string)
17 $replacement = 'string_val';
20 var_dump( ereg_replace($pattern, $replacement, $string, $extra_arg) );
25 $replacement = 'string_val';
26 var_dump( ereg_replace($pattern, $replacement) );
H A Deregi_replace_error_001.phpt5 /* Prototype : proto string eregi_replace(string pattern, string replacement, string string)
17 $replacement = 'string_val';
20 var_dump( eregi_replace($pattern, $replacement, $string, $extra_arg) );
25 $replacement = 'string_val';
26 var_dump( eregi_replace($pattern, $replacement) );
/PHP-5.5/ext/standard/tests/array/
H A Darray_splice_variation3.phpt78 - No replacement
119 - No replacement
160 - No replacement
201 - No replacement
242 - No replacement
283 - No replacement
324 - No replacement
365 - No replacement
406 - No replacement
447 - No replacement
[all …]
H A Darray_splice_variation4.phpt2 Test array_splice() function : usage variations - non array replacement values
6 * proto array array_splice(array input, int offset [, int length [, array replacement]])
10 function test_splice ($replacement)
13 var_dump (array_splice ($input_array,2,0,$replacement));
H A Darray_splice_variation1.phpt6 * proto array array_splice(array input, int offset [, int length [, array replacement]])
29 echo "Test behaviour of replacement array containing references \n";
38 echo "Test behaviour of replacement which is part of reference set \n";
91 Test behaviour of replacement array containing references
102 Test behaviour of replacement which is part of reference set
/PHP-5.5/ext/spl/tests/
H A Dbug54304.phpt2 Bug #54304 (Setting replacement value for RegexIterator doesn't work)
14 $i->replacement = 42;
15 var_dump($i->replacement);
19 var_dump($i->replacement);
H A Dbug50579.phpt16 $i->replacement = '[$0]';
21 $i->replacement = '$1';
28 $i->replacement = '[$1]';
/PHP-5.5/ext/mbstring/tests/
H A Dmb_ereg_replace_error.phpt10 /* Prototype : proto string mb_ereg_replace(string pattern, string replacement, string string [, s…
21 $replacement = b'1';
25 var_dump( mb_ereg_replace($pattern, $replacement, $string, $option, $extra_arg) );
30 $replacement = b'string_val';
31 var_dump( mb_ereg_replace($pattern, $replacement) );
H A Dmb_eregi_replace.phpt11 $replacement = array(
26 foreach($replacement as $i=>$u) {
H A Dmb_ereg_replace_variation1.phpt12 /* Prototype : proto string mb_ereg_replace(string pattern, string replacement, string string [, s…
21 $replacement = 'string_val';
93 var_dump( mb_ereg_replace($input, $replacement, $string, $option) );
H A Dmb_ereg_replace_variation3.phpt10 /* Prototype : proto string mb_ereg_replace(string pattern, string replacement, string string [, s…
20 $replacement = 'string_val';
96 var_dump( mb_ereg_replace($pattern, $replacement, $input, $option) );
H A Dmb_ereg_replace_variation4.phpt10 /* Prototype : proto string mb_ereg_replace(string pattern, string replacement, string string [, s…
20 $replacement = '1';
96 var_dump( mb_ereg_replace($pattern, $replacement, $string, $input) );
/PHP-5.5/ext/standard/tests/strings/
H A Dbug27276.phpt6 $replacement = str_repeat("x", 12444);
10 str_replace($key, $replacement, $string);
/PHP-5.5/ext/dba/tests/
H A Ddba003.phpt14 dba_replace("key1", "This is the replacement text", $db_file);
28 This is the replacement text
/PHP-5.5/ext/pcre/tests/
H A Dpreg_replace_callback_basic.phpt12 $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'…
14 global $replacement;
15 …return $replacement[$matches[0]]; //all examples will be looking for an integer value, if one is f…
H A Dpreg_replace_callback_error.phpt15 $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'…
17 global $replacement;
18 return $replacement[$matches[0]];
H A Dpreg_replace_callback_error1.phpt19 $replacement = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'…
21 global $replacement;
22 return $replacement[$matches[0]];
H A Dpreg_replace_error2.phpt11 * Testing how preg_replace reacts to being passed the wrong type of replacement argument
33 Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array in %…
/PHP-5.5/ext/standard/tests/file/
H A Dfile_variation.phpt41 echo "File contents in array form Before replacement of the key\n";
49 echo "File contents in array form After replacement of the key\n";
141 File contents in array form Before replacement of the key
152 File contents in array form After replacement of the key
/PHP-5.5/Zend/tests/
H A Dheredoc_003.phpt2 simple variable replacement test (heredoc)
H A Dheredoc_004.phpt2 braces variable replacement test (heredoc)

Completed in 43 milliseconds

1234