David Flores
#Linux #Drupal #Symfony #WebDeveloper #Silex #OpenSource
The Right Way
David Flores
Linux, Drupal, Symfony, Silex, BackEnd, Seguridad, Python, Open Source, Future Father ...sometimes #Nerd Speaker
david@indava.com
@dmouse
http://bit.ly/meetup-php-01
PHP 5.3 Last release Aug 2014
PHP 5.2 Last release Jan 2011
PHP 5.0 Last release Sep 2005
PHP 4.4 Last release Aug 2008
<?php
use MyPackage\Controller\Login;
use MyPackage\Model\User
<?php
namespace MyPackage\Traits;
trait message
{
function showMessage(){ // ... }
}
<?php
namespace MyPackage;
use MyPackage\Traits\Message;
class Information
{
use Message;
// ...
}
$inf = new Information();
$inf->showMessage();
<?php
for ($iterator = 1; $i <= 3; $i++) {
yield $iterator;
}
foreach ($iterator as $value) {
echo $value;
}
david@indava.com
@dmouse
www.meetup.com/PHP-The-Right-Way
By David Flores