Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 1144) sorted by relevance

12345678910>>...46

/PHP-7.0/Zend/
H A Dzend_llist.c168 element=l->head; in zend_llist_apply_with_del()
169 while (element) { in zend_llist_apply_with_del()
170 next = element->next; in zend_llist_apply_with_del()
174 element = next; in zend_llist_apply_with_del()
183 for (element=l->head; element; element=element->next) { in zend_llist_apply()
184 func(element->data); in zend_llist_apply()
211 for (element=l->head; element; element=element->next) { in zend_llist_sort()
212 *ptr++ = element; in zend_llist_sort()
235 for (element=l->head; element; element=element->next) { in zend_llist_apply_with_argument()
236 func(element->data, arg); in zend_llist_apply_with_argument()
[all …]
/PHP-7.0/tests/classes/
H A Darray_access_009.phpt10 function proxyGet($element);
12 function proxyUnset($element, $index);
18 private $element;
22 echo __METHOD__ . "($element)\n";
23 if (!$object->offsetExists($element))
25 $object[$element] = array();
28 $this->element = $element;
82 function proxyGet($element)
84 return $this->person[$element];
144 ["element":"ArrayProxy":private]=>
[all …]
H A Darray_access_011.phpt12 private $element;
16 echo __METHOD__ . "($element)\n";
19 $this->element = $element;
23 echo __METHOD__ . "($this->element, $index)\n";
28 echo __METHOD__ . "($this->element, $index)\n";
29 …return isset($this->oarray[$this->element][$index]) ? $this->oarray[$this->element][$index] : NULL;
34 $this->oarray[$this->element][$index] = $value;
38 echo __METHOD__ . "($this->element, $index)\n";
39 unset($this->oarray[$this->element][$index]);
135 ["element":"ArrayAccessReferenceProxy":private]=>
[all …]
H A Darray_access_010.phpt11 private $element;
13 function __construct(ArrayAccess $object, array &$element)
17 $this->element = &$element;
21 echo __METHOD__ . "($this->element, $index)\n";
22 return array_key_exists($index, $this->element);
27 return isset($this->element[$index]) ? $this->element[$index] : NULL;
32 $this->element[$index] = $value;
37 unset($this->element[$index]);
118 ["element":"ArrayReferenceProxy":private]=>
156 ["element":"ArrayReferenceProxy":private]=>
/PHP-7.0/ext/xmlreader/tests/
H A Dbug73053.xsd5 <xsd:element name="books" type="bks:BooksForm"/>
9 <xsd:element name="book"
18 <xsd:element name="author" type="xsd:string"/>
19 <xsd:element name="title" type="xsd:string"/>
20 <xsd:element name="genre" type="xsd:string"/>
21 <xsd:element name="price" type="xsd:float" />
22 <xsd:element name="pub_date" type="xsd:date" />
23 <xsd:element name="review" type="xsd:string"/>
/PHP-7.0/ext/spl/tests/
H A DarrayObject_clone_basic1.phpt7 $a['p1'] = 'new element added to a before clone';
11 $a['p2'] = 'new element added to a after clone';
12 $aa1['new.aa1'] = 'new element added to aa1';
13 $aa2['new.aa2'] = 'new element added to aa2';
23 string(35) "new element added to a before clone"
25 string(34) "new element added to a after clone"
35 string(24) "new element added to aa1"
46 string(24) "new element added to aa2"
H A DarrayObject_exchangeArray_basic1.phpt10 $ao['a'] = 'adding element to $ao';
11 $swapIn['b'] = 'adding element to $swapIn';
12 $ao['c'] = 'adding another element to $ao';
26 string(25) "adding element to $swapIn"
36 string(21) "adding element to $ao"
38 string(29) "adding another element to $ao"
H A DarrayObject_clone_basic3.phpt18 $innerArrayObject['new.iAO'] = 'new element added $innerArrayObject';
19 $outerArrayObject['new.oAO'] = 'new element added to $outerArrayObject';
20 $clonedOuterArrayObject['new.coAO'] = 'new element added to $clonedOuterArrayObject';
33 string(35) "new element added $innerArrayObject"
35 string(38) "new element added to $outerArrayObject"
47 string(35) "new element added $innerArrayObject"
49 string(38) "new element added to $outerArrayObject"
64 string(35) "new element added $innerArrayObject"
66 string(38) "new element added to $outerArrayObject"
78 string(44) "new element added to $clonedOuterArrayObject"
H A DarrayObject_exchangeArray_basic2.phpt19 $obj = new ArrayObject(array('key'=>'ArrayObject element'));
25 $obj = new ArrayIterator(array('key'=>'ArrayIterator element'));
31 $obj = new ArrayObject(new ArrayObject(array('key'=>'nested ArrayObject element')));
58 string(19) "ArrayObject element"
65 string(19) "ArrayObject element"
71 string(21) "ArrayIterator element"
78 string(21) "ArrayIterator element"
84 string(26) "nested ArrayObject element"
93 string(26) "nested ArrayObject element"
H A Drecursiveiteratoriterator_nextelement_basic.phpt2 SPL: RecursiveIteratorIterator::nextElement() is called when the next element is ready
12 foreach ($iterator as $element) {
13 var_dump($element);
22 foreach ($iterator as $element) {
23 var_dump($element);
H A DarrayObject_setFlags_basic1.phpt19 $ao = new C(array('p'=>'array element'));
25 echo "\n--> Remove the real property and access the array element:\n";
29 echo "\n--> Remove the array element and try access again:\n";
39 --> Remove the real property and access the array element:
41 string(13) "array element"
42 string(21) "array element.changed"
44 --> Remove the array element and try access again:
H A Drecursiveiteratoriterator_beginiteration_basic.phpt12 foreach ($iterator as $element) {
13 var_dump($element);
23 foreach ($iterator as $element) {
24 var_dump($element);
H A Drecursiveiteratoriterator_enditeration_basic.phpt12 foreach ($iterator as $element) {
13 var_dump($element);
22 foreach ($iterator as $element) {
23 var_dump($element);
H A Dbug45622.phpt10 $ao = new C(array('p'=>'array element'));
17 echo "\n--> Remove the real property and access the array element:\n";
22 echo "\n--> Remove the array element and try access again:\n";
38 --> Remove the real property and access the array element:
40 %unicode|string%(13) "array element"
42 --> Remove the array element and try access again:
/PHP-7.0/ext/dom/tests/
H A Dbug70001.phpt7 $element = new DOMText('<p>foo & bar</p>');
8 var_dump($element->textContent);
9 $element = (new DOMDocument())->createTextNode('<p>foo & bar</p>');
10 var_dump($element->textContent);
11 $element->textContent = ('<p>foo & bar</p>');
12 var_dump($element->textContent);
H A DDOMElement_hasAttributes_basic.phpt19 $element = $dom->documentElement;
22 echo get_class($element), "\n";
25 var_dump($element->hasAttributes());
28 $element = $nodelist->item(0);
31 echo get_class($element), "\n";
34 var_dump($element->hasAttributes());
H A DDOMDocument_relaxNGValidateSource_error1.phpt16 <element name="apple">
17 <element name="pear">
19 </element>
20 </element>
40 Warning: DOMDocument::relaxNGValidateSource(): Did not expect element pear there in %s on line %d
H A DDOMDocument_relaxNGValidateSource_basic.phpt16 <element name="apple">
17 <element name="pear">
19 </element>
20 </element>
/PHP-7.0/ext/spl/
H A Dspl_observer.c183 ZVAL_COPY(&element.obj, obj); in spl_object_storage_attach()
185 ZVAL_COPY(&element.inf, inf); in spl_object_storage_attach()
187 ZVAL_NULL(&element.inf); in spl_object_storage_attach()
211 spl_object_storage_attach(intern, this, &element->obj, &element->inf); in spl_object_storage_addall()
447 if (!element) { in SPL_METHOD()
450 zval *value = &element->inf; in SPL_METHOD()
558 zval *element; in SPL_METHOD() local
1020 it = &element->obj; in SPL_METHOD()
1043 it = &element->obj; in SPL_METHOD()
1073 it = &element->obj; in SPL_METHOD()
[all …]
/PHP-7.0/Zend/tests/
H A Darray_literal_next_element_error.phpt2 Next free element may overflow in array literals
15 Warning: Cannot add element to the array as the next element is already occupied in %s on line %d
21 Warning: Cannot add element to the array as the next element is already occupied in %s on line %d
H A Dbug32674.phpt21 $element = current($this->_elements);
22 return $element;
26 $element = next($this->_elements);
27 return $element;
32 $element = key($this->_elements);
33 return $element;
/PHP-7.0/ext/spl/internal/
H A Dsplobjectstorage.inc53 $element = current($this->storage);
54 return $element ? $element[0] : NULL
62 $element = current($this->storage);
63 return $element ? $element[1] : NULL
76 /** Forward to next element
98 foreach($this->storage as $element)
100 if ($object === $element[0])
127 foreach($this->storage as $idx => $element)
129 if ($object === $element[0])
161 if ($object === $element[0])
[all …]
/PHP-7.0/ext/standard/tests/array/
H A Dreset_variation2.phpt2 Test reset() function : usage variations - unset first element
6 * Description: Set array argument's internal pointer to the first element and return it
11 * Unset first element of an array and test behaviour of reset()
21 echo "\n-- Unset First element in array and check reset() --\n";
32 -- Unset First element in array and check reset() --
H A Darray_shift_variation8.phpt6 * Description: Pops an element off the beginning of the array
14 * it will return a *copy* of the first element of the array,
15 * and not the element itself, so your reference will be lost.
16 * The solution is to reference the first element before removing it with array_shift():
29 // solution: referencing the first element first:
30 echo "\n-- Reference first element before array_shift: --\n";
48 -- Reference first element before array_shift: --
/PHP-7.0/tests/lang/
H A DforeachLoop.012.phpt74 ---( Array with 1 element(s): )---
86 ---( Array with 2 element(s): )---
101 ---( Array with 3 element(s): )---
119 ---( Array with 4 element(s): )---
143 ---( Array with 1 element(s): )---
155 ---( Array with 2 element(s): )---
170 ---( Array with 3 element(s): )---
188 ---( Array with 4 element(s): )---
212 ---( Array with 1 element(s): )---
224 ---( Array with 2 element(s): )---
[all …]

Completed in 36 milliseconds

12345678910>>...46