w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • References
  • PHP
  • Language
Language:
  • Classes and Objects
  • Context options and parameters
  • Control Structures
  • Functions
  • Generators
  • Misc.
  • Namespaces
  • Operators
  • Predefined Exceptions
  • Predefined Interfaces and Classes
  • Predefined Variables
  • Supported Protocols and Wrappers
  • Types


×
Generator syntax
  • References/PHP/Language/Generators

Examples: A simple example of yielding values The heart of a generator function

2025-01-10 15:47:30
time_nanosleep
  • References/PHP/Language/Misc.

(PHP 5, PHP 7) Delay for a number of seconds and nanoseconds

2025-01-10 15:47:30
Namespaces and dynamic language features
  • References/PHP/Language/Namespaces

(PHP 5 >= 5.3.0, PHP 7) Examples:

2025-01-10 15:47:30
Anonymous (class)es
  • References/PHP/Language/Classes and Objects

Examples: Support for anonymous classes was added in PHP 7. Anonymous classes are useful when simple, one-off objects

2025-01-10 15:47:30
namespace keyword and __NAMESPACE__ constant
  • References/PHP/Language/Namespaces

(PHP 5 >= 5.3.0, PHP 7) Examples:

2025-01-10 15:47:30
glob://
  • References/PHP/Language/Supported Protocols and Wrappers

Find pathnames matching pattern The glob: stream wrapper is available since PHP

2025-01-10 15:47:30
do-while
  • References/PHP/Language/Control Structures

(PHP 4, PHP 5, PHP 7) Examples:

2025-01-10 15:47:30
Exception::getLine
  • References/PHP/Language/Predefined Exceptions/Exception

(PHP 5 >= 5.1.0, PHP 7) Gets the line in which the exception occurred

2025-01-10 15:47:30
Object Inheritance
  • References/PHP/Language/Classes and Objects

Examples: Inheritance Example

2025-01-10 15:47:30
Iterator::valid
  • References/PHP/Language/Predefined Interfaces and Classes/Iterator

(PHP 5 >= 5.0.0, PHP 7) Checks if current position is valid

2025-01-10 15:47:30

Page 11 of 20

|< < Prev 8 9 10 11 12 13 14 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions