Diverses incompatibilités

Exemple C-11. Migration depuis 2.0: concaténation de chaînes

<?php
  
echo "1" + "1";
?>

En PHP 2.0 cela retournerait 11, en PHP 3.0 cela va retourner 2. A la place, faites :
<?php
  
echo "1"."1";
?>
<?php
  $a
= 1;
  
$b = 1;
  echo
$a + $b;
?>

Cela va afficher 2, tant en PHP 2.0 qu'en 3.0.
<?php
  $a
= 1;
  
$b = 1;
  echo
$a.$b;
?>
Cela va afficher 11 en PHP 3.0.