PHP 7.4

  1. Propriétés typées
<?php 
class Person {
public int $user;
public string $article;
}
?>
<?php 
$facteur = 10;
$numero = array_map(fn($num) => $num * $facteur, [1,2,3,4,]);
?>
<?php 
class Valeur1{}
class Valeur2 extends Valeur1 {}
class Procuer{
public function method(): Valeur1 {}
}
class ChildProcedur extends Procuer{
public function method(): Valeur2 {}
}
<?php 
proc_open(['php, '-r', 'echo "hello word\n"; '], $descripteur, $pippes);
?>
<?php 
proc_open($shell,
[1 => ['user', 'w'],
2 => ['redirect', 1]
], $pipes
);
?>

--

--

--

I’m Scott Tresor backend developer since when, and I’m PHP developer with Laravel framework and Javascript with Angular, Vuejs and AdonisJs framework.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Scott Tresor

Scott Tresor

I’m Scott Tresor backend developer since when, and I’m PHP developer with Laravel framework and Javascript with Angular, Vuejs and AdonisJs framework.

More from Medium

Deprecating PHP 7.0 and PHP 7.1 on violinist

Use PHP Class constants

PHP vs JavaScript: The Best Language For Your Project

A simple PHP site/framework (5/?)