Skip to content

Commit

Permalink
string section sync with EN (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Mar 9, 2024
1 parent 777f5c6 commit 9b8d242
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions language/types/string.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: d913c15e0c6b8bb0e09bdbadbc4ff53b4c6847bf Maintainer: yannick Status: ready -->
<!-- EN-Revision: affa37e16f562d9297e83b2e21ec416aadc8b72d Maintainer: yannick Status: ready -->
<!-- Reviewed: no Maintainer: girgias -->
<sect1 xml:id="language.types.string">
<title>Les chaînes de caractères</title>
Expand Down Expand Up @@ -914,8 +914,9 @@ echo "This works: {$arr['key']}";
echo "This works: {$arr[4][3]}";
// Ceci est faux pour la même raison pour laquelle $foo[bar] est faux à l'extérieur d'une chaîne.
// En d'autres termes, ceci fonctionnera, mais uniquement parce que PHP cherchera d'abord
// une constante nommée foo ; une erreur de niveau E_NOTICE (constante indéfinie) sera émise.
// PHP recherche d'abord une constante nommée foo et génère une erreur si elle n'est pas trouvée.
// Si la constante est trouvée, sa valeur (et non 'foo' elle-même) serait utilisée
// comme indice de tableau.
echo "This is wrong: {$arr[foo][3]}";
// Fonctionne. Lors de l'utilisation de tableaux multidimensionnels, utilisez toujours
Expand Down

0 comments on commit 9b8d242

Please sign in to comment.