Home
last modified time | relevance | path

Searched refs:a (Results 351 – 375 of 6311) sorted by relevance

1...<<11121314151617181920>>...253

/PHP-5.5/tests/classes/
H A Darray_access_004.phpt7 public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
11 return array_key_exists($index, $this->a);
17 $a = 'foo';
18 return $a . 'Bar';
20 static $a=1;
21 return $a;
23 return $this->a[$index];
30 return $this->a[$index] = $newval;
34 unset($this->a[$index]);
/PHP-5.5/ext/ereg/tests/
H A Dspliti_basic_001.phpt2 Test spliti() function : basic functionality - test a number of simple spliti, specifying a limit
12 * Test a number of simple spliti, specifying a limit
30 --> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
64 --> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
84 --> Pattern: '\a'; match: 'a'
91 string(12) " |1| a |2| a"
94 --> Pattern: '[0-9][^0-9]'; match: '2a'
101 string(14) " |1| 2a |2| 2a"
146 --> Pattern: '[[:print:]]{3}'; match: ' a '
153 string(16) " |1| a |2| a "
H A Dsplit_basic_001.phpt2 Test split() function : basic functionality - test a number of simple split, specifying a limit
12 * Test a number of simple split, specifying a limit
30 --> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
64 --> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
84 --> Pattern: '\a'; match: 'a'
91 string(12) " |1| a |2| a"
94 --> Pattern: '[0-9][^0-9]'; match: '2a'
101 string(14) " |1| 2a |2| 2a"
146 --> Pattern: '[[:print:]]{3}'; match: ' a '
153 string(16) " |1| a |2| a "
/PHP-5.5/ext/standard/tests/strings/
H A Dbug35817.phpt5 $a = pack("H3","181");
6 $b = unpack("H3", $a);
9 $a = pack("H2","18");
10 $b = unpack("H2", $a);
13 $a = pack("H","1");
14 $b = unpack("H", $a);
H A Dbug47322.phpt6 sscanf(":59:58","%s:%d:%f", $a, $b, $c);
7 echo "[$a][$b][$c]\n";
9 sscanf("15:01:58.2","%d:%f:%f", $a, $b, $c);
10 echo "[$a][$b][$c]\n";
12 sscanf("15.1111::foo","%f:%d:%s", $a, $b, $c);
13 echo "[$a][$b][$c]\n";
H A Dstrip_tags_variation4.phpt8 * Description: Strips HTML and PHP tags from a string
26 "<a.>HtMl text</.a>",
27 '<a.>HtMl text</.a>',
28 "<nnn>I am not a valid html text</nnn>",
29 '<nnn>I am not a valid html text</nnn>',
30 "<nnn>I am a quoted (\") string with special chars like \$,\!,\@,\%,\&</nnn>",
35 $quotes = "<p><a><?php<html>";
67 string(26) "I am not a valid html text"
69 string(26) "I am not a valid html text"
71 string(62) "I am a quoted (") string with special chars like $,\!,\@,\%,\&"
[all …]
/PHP-5.5/ext/spl/tests/
H A Dbug53515.phpt6 $a = array('a' => 1, 'b'=> true, 'c' => 0, 'd' => null, 'e' => false, 'f' => array());
7 $o = new ArrayObject($a, ArrayObject::ARRAY_AS_PROPS);
9 $a['z'] = '';
10 $a[''] = '';
12 foreach ($a as $key => $value) {
14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') .
20 a: 1 array_key_exists: true property_exists: true
H A DSplObjectStorage_unserialize_nested.phpt6 $a = new StdClass();
8 $o->a = $a;
13 $so[$a] = 2;
22 C:16:"SplObjectStorage":76:{x:i:2;O:8:"stdClass":1:{s:1:"a";O:8:"stdClass":0:{}},i:1;;r:4;,i:2;;m:a
30 ["a"]=>
/PHP-5.5/ext/standard/tests/array/
H A Dbug21918.phpt7 $a = array(-1=>'a', '-2'=>'b', 3=>'c', '4'=>'d', 5=>'e', '6001'=>'f', '07'=>'g');
9 foreach($a as $k => $v) {
16 $b[] = 'a';
24 $c = array('-2' => 'a');
36 string(1) "a"
51 string(1) "a"
54 string(1) "a"
H A Darray_intersect_ukey_variation3.phpt6 …* Description: Computes the intersection of arrays using a callback function on the keys for compa…
101 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string give…
104 Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string give…
109 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string give…
112 Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string give…
117 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string give…
120 Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string give…
125 Warning: array_intersect_ukey() expects parameter 3 to be a valid callback, no array or string give…
128 Warning: array_intersect_ukey() expects parameter 4 to be a valid callback, no array or string give…
189 …ing: array_intersect_ukey() expects parameter 3 to be a valid callback, first array member is not
[all …]
H A Duksort_basic.phpt9 function cmp($a, $b) {
10 if ($a == $b) {
13 return ($a < $b) ? -1 : 1;
15 $a = array(3, 2, 5, 6, 1);
16 uasort($a, "cmp");
17 foreach($a as $key => $value) {
H A Darray_shift_variation8.phpt11 * From a comment left by Traps on 09-Jul-2007 on the array_shift documentation page:
14 * it will return a *copy* of the first element of the array,
23 $a = 1;
24 $array = array(&$a);
27 echo "a = $a, b = $b\n";
31 $a = 1;
32 $array = array(&$a);
36 echo "a = $a, b = $b\n";
46 a = 1, b = 2
49 a = 2, b = 2
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_libmysql_compat.h44 #define mysql_change_user(r,a,b,c) mysqlnd_change_user((r), (a), (b), (c), FALSE) argument
53 #define mysql_escape_string(a,b,c) mysqlnd_escape_string((a), (b), (c)) argument
62 #define mysql_init(a) mysqlnd_init((a)) argument
74 #define mysql_real_escape_string(r,a,b,c) mysqlnd_real_escape_string((r), (a), (b), (c)) argument
75 #define mysql_real_query(r,a,b) mysqlnd_query((r), (a), (b)) argument
78 #define mysql_select_db(r,a) mysqlnd_select_db((r), (a) ,strlen((a))) argument
80 #define mysql_set_character_set(r,a) mysqlnd_set_character_set((r), (a)) argument
101 #define mysql_stmt_attr_get(s,a,v) mysqlnd_stmt_attr_get((s), (a), (v)) argument
102 #define mysql_stmt_attr_set(s,a,v) mysqlnd_stmt_attr_set((s), (a), (v)) argument
109 #define mysql_options(c,a,v) mysqlnd_options((c), (a), (v)) argument
[all …]
/PHP-5.5/Zend/tests/
H A Dbug64555.phpt11 $a = get_object_vars($this);
13 foreach ($a as $k => $v) {
16 unset($a[$k]);
19 $a[$k] = 42;
20 $a['keepme'] = 43;
24 var_dump($a, array_keys($a));
H A Dbug26801.phpt2 Bug #26801 (switch ($a{0}) crash)
6 $a = '11';
7 $b = $a[0];
13 $a = '22';
14 switch ($a[0]) {
H A Dclosure_007.phpt22 $a = new A;
23 $a->printX();
24 $getClosure = $a->getClosureGetter();
25 $a->printX();
27 $a->printX();
29 $a->printX();
/PHP-5.5/ext/standard/tests/file/
H A Dfgetcsv_variation19.phpt32 "a+", "a+b", "a+t",
52 // write another line of text and a blank line
54 // working when only a blank line is read
152 -- Testing fgetcsv() with file opened using a+ mode --
162 -- Testing fgetcsv() with file opened using a+b mode --
172 -- Testing fgetcsv() with file opened using a+t mode --
302 -- Testing fgetcsv() with file opened using a+ mode --
312 -- Testing fgetcsv() with file opened using a+b mode --
322 -- Testing fgetcsv() with file opened using a+t mode --
452 -- Testing fgetcsv() with file opened using a+ mode --
[all …]
H A Dchmod_variation2.phpt24 echo "chmod() on a path containing .. and .\n";
30 echo "\nchmod() on a path containing .. with invalid directories\n";
36 echo "\nchmod() on a linked file\n";
45 echo "\nchmod() on a relative path from a different working directory\n";
53 echo "\nchmod() on a directory with a trailing /\n";
65 chmod() on a path containing .. and .
70 chmod() on a path containing .. with invalid directories
77 chmod() on a linked file
84 chmod() on a relative path from a different working directory
89 chmod() on a directory with a trailing /
/PHP-5.5/tests/basic/
H A D016.phpt4 a[a]=1&a[b]=3
7 var_dump($_POST['a']);
11 ["a"]=>
H A D020.phpt4 a[a[]]=1&a[b[]]=3
7 var_dump($_POST['a']);
11 ["a["]=>
/PHP-5.5/ext/pcre/tests/
H A Dpreg_replace_edit_basic.phpt11 $string = '123456789 - Hello, world - This is a string.';
14 var_dump(preg_replace('<- This is a string$>',
15 …This shouldn\'t work', $string)); //tries to find '- This is a string' at the end of a string b…
18 … '4', $string, //finds any number that's not 4 and replaces it with a 4
27 … with an indefinite amount of whitespace around them and replaces them with a full stop precedeby …
29 var_dump(preg_replace('<(^[a-z]\w+)@(\w+)\.(\w+)\.([a-z]{2,}$)>',
33 string(54) "123456789 - Hello, world - This is a string."
34 string(54) "123456789 - Hello, world - This is a string."
35 string(54) "444444789 - Hello, world - This is a string."
37 string(56) "123456789 - Bonjour, world - This is a string."
[all …]
/PHP-5.5/ext/pcre/pcrelib/testdata/
H A Dtestinput1841 /a\Cb/8
43 a\nb
45 /a\C\Cb/8
46 a\x{12257}b
49 a\x{100}b
105 /a\Cb/8
107 a\x{100}b
199 ABC\x{0a}
226 /a+/8
227 a\x{123}aa\>1
[all …]
/PHP-5.5/ext/reflection/tests/
H A Dbug63614.phpt6 static $a = array();
15 static $a = array(
16 self::A => 'a'
29 [a] => Array
36 [a] => Array
38 [0] => a
/PHP-5.5/ext/session/tests/
H A Dsession_set_save_handler_error.phpt100 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
105 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
110 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
115 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
120 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
125 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
130 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
135 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
140 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
145 Warning: session_set_save_handler(): Argument 1 is not a valid callback in %s on line %d
[all …]
/PHP-5.5/ext/tokenizer/tests/
H A Dtoken_get_all_variation19.phpt2 Reconstructing a script using token_get_all()
13 /* a different
17 // a class
24 $a = new TestClass();
25 $a->foo();
36 // reconstruct a script (without open/close tags) from the token array
61 /* a different
65 // a class
72 $a = new TestClass();
73 $a->foo();

Completed in 110 milliseconds

1...<<11121314151617181920>>...253