doc:todo:undocumented

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
doc:todo:undocumented [2008/11/01 08:26]
kalle Constants can be defined using the 'const' keyword outside a class
doc:todo:undocumented [2009/01/07 14:56]
vrana Already documented
Line 59: Line 59:
 ===== PHP 5.3 ===== ===== PHP 5.3 =====
   * SPL classes: ArrayObject, CachingIterator, RecursiveCachingIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator   * SPL classes: ArrayObject, CachingIterator, RecursiveCachingIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator
- 
-  * ''goto'' 
-<code php> 
-<?php  
- 
-goto a; 
-print 'Foo'; 
- 
-a: 
-print 'Bar'; 
- 
-?> 
-</code> 
- 
-  * ''?:'' operator 
-<code php> 
-<?php  
- 
-var_dump(0 ?: 'Hello!'); // string(6) "Hello!" 
- 
-?> 
-</code> 
- 
-  * ''namespace::'' (alternative for ''%%__NAMESPACE__%%'') 
-<code php> 
-<?php  
- 
-namespace foo::bar; 
- 
-const bar = 2; 
- 
-function foo() { 
-    return 'foo!';     
-} 
- 
-var_dump(namespace::bar, namespace::foo()); 
-/* 
-int(2) 
-string(4) "foo!" 
-*/ 
-?> 
-</code> 
- 
-  * Override existing classes 
-<code php> 
-<?php 
- 
-namespace test; 
- 
-class foo { } 
- 
-use test::foo as stdClass; 
- 
-var_dump(new stdClass); 
-/* 
-object(test::foo)#1 (0) { 
-} 
-*/ 
-?> 
-</code> 
  
   * ''new static;''   * ''new static;''
Line 179: Line 119:
  
   * [HOST=] and [PATH=] configuration sections in php.ini   * [HOST=] and [PATH=] configuration sections in php.ini
- 
-  * ''E_DEPRECATED'' 
  
   * zend_parse_parameters types: C, f, Z, h   * zend_parse_parameters types: C, f, Z, h
  
   * ''Closures''   * ''Closures''
- 
-  * Constants can be defined using the ''const'' keyword outside a class declaring scope: 
-<code php> 
-<?php 
-const MY_CONSTANT = 'My value'; 
- 
-echo MY_CONSTANT; 
-?> 
-</code> 
- 
 ===== PHP 5.x ==== ===== PHP 5.x ====
  
doc/todo/undocumented.txt · Last modified: 2017/09/22 13:28 (external edit)