diff --git a/modules/20-arithmetics/20-basic/en/README.md b/modules/20-arithmetics/20-basic/en/README.md index dc698718..aa70d3bc 100644 --- a/modules/20-arithmetics/20-basic/en/README.md +++ b/modules/20-arithmetics/20-basic/en/README.md @@ -103,7 +103,7 @@ The reason for separating this into a distinct type: the computer needs to store At a basic level, it's enough to remember: integers are needed when there are no fractions, and floating-point numbers are needed when there are fractions. We'll explore them in more detail later in the course. -## What is the remainder (`%`) +## What is the remainder (%) This operation is called **taking the remainder of division**. It shows **what "remains"** when one number is divided by another _not completely_. Example: diff --git a/modules/20-arithmetics/20-basic/es/README.md b/modules/20-arithmetics/20-basic/es/README.md index 049caa52..92daab4a 100644 --- a/modules/20-arithmetics/20-basic/es/README.md +++ b/modules/20-arithmetics/20-basic/es/README.md @@ -103,7 +103,7 @@ La razón de separar esto en un tipo aparte: la computadora necesita almacenar l A nivel básico basta con recordar: los números enteros se necesitan cuando no hay fracciones, y los números de punto flotante se necesitan cuando hay fracciones. Los analizaremos con más detalle más adelante en el curso. -## Qué es el resto de la división (`%`) +## Qué es el resto de la división (%) Esta operación se llama **tomar el resto de la división**. Muestra **lo que «queda»** cuando un número se divide entre otro _de forma incompleta_. Ejemplo: diff --git a/modules/20-arithmetics/20-basic/ru/README.md b/modules/20-arithmetics/20-basic/ru/README.md index b8fc5667..e8025f1b 100644 --- a/modules/20-arithmetics/20-basic/ru/README.md +++ b/modules/20-arithmetics/20-basic/ru/README.md @@ -103,7 +103,7 @@ print_r(7 / 2); // => 3.5 На базовом уровне достаточно помнить: целые числа нужны, когда нет дробей, а числа с плавающей точкой нужны, когда дроби есть. Подробнее мы разберемся с ними дальше по курсу. -## Что такое остаток от деления (`%`) +## Что такое остаток от деления (%) Эта операция называется **взятие остатка от деления**. Она показывает, **что «остается»**, когда одно число делится на другое _не полностью_. Пример: diff --git a/modules/25-strings/15-escape-characters/en/README.md b/modules/25-strings/15-escape-characters/en/README.md index ff3bf733..6ca77f70 100644 --- a/modules/25-strings/15-escape-characters/en/README.md +++ b/modules/25-strings/15-escape-characters/en/README.md @@ -30,7 +30,7 @@ The result will be: - Aaaarrrgh! ``` -## What is `\n`? +## What is \n? `\n` is an escape sequence (sometimes called an "escaped sequence"). It denotes a line break, but isn't displayed directly. You won't see `\n` in the program's output, since it only affects the placement of the text. @@ -58,7 +58,7 @@ print_r('Hello\nWorld'); // => Hello\nWorld ``` -## Examples of using `\n` +## Examples of using \n Here's how PHP handles the escape sequence `\n`: @@ -113,7 +113,7 @@ First line Second line ``` -## How to print the `\n` character itself +## How to print the \n character itself `\n` in PHP is an escape sequence. It controls the placement of text and isn't displayed on the screen as ordinary characters. If you need to print exactly the characters `\` and `n`, rather than a line break, they need to be escaped. To do this, you add another slash before the backslash: diff --git a/modules/25-strings/15-escape-characters/es/README.md b/modules/25-strings/15-escape-characters/es/README.md index c9c1fc48..d066be19 100644 --- a/modules/25-strings/15-escape-characters/es/README.md +++ b/modules/25-strings/15-escape-characters/es/README.md @@ -30,7 +30,7 @@ El resultado será así: - Aaaarrrgh! ``` -## ¿Qué es `\n`? +## ¿Qué es \n? `\n` es una secuencia de escape (en inglés escape sequence, a veces se dice "secuencia escapada"). Denota un salto de línea, pero no se muestra directamente. No verás `\n` en la salida del programa, ya que solo influye en la disposición del texto. @@ -58,7 +58,7 @@ print_r('Hello\nWorld'); // => Hello\nWorld ``` -## Ejemplos de uso de `\n` +## Ejemplos de uso de \n Así es como PHP procesa la secuencia de escape `\n`: @@ -113,7 +113,7 @@ First line Second line ``` -## Cómo imprimir el propio carácter `\n` +## Cómo imprimir el propio carácter \n `\n` en PHP es una secuencia de escape. Controla la disposición del texto y no se muestra en la pantalla como caracteres ordinarios. Si necesitas mostrar precisamente los caracteres `\` y `n`, y no un salto de línea, hay que escaparlos. Para esto, se añade otra barra antes de la barra invertida: diff --git a/modules/25-strings/15-escape-characters/ru/README.md b/modules/25-strings/15-escape-characters/ru/README.md index ac6fed5e..0f8f10a3 100644 --- a/modules/25-strings/15-escape-characters/ru/README.md +++ b/modules/25-strings/15-escape-characters/ru/README.md @@ -30,7 +30,7 @@ print_r("- Are you hungry?\n- Aaaarrrgh!"); - Aaaarrrgh! ``` -## Что такое `\n`? +## Что такое \n? `\n` является управляющей последовательностью (англ. escape sequence, иногда говорят «экранированная последовательность»). Она обозначает перевод строки, но не отображается напрямую. Вы не увидите `\n` в выводе программы, так как она влияет только на расположение текста. @@ -58,7 +58,7 @@ print_r('Hello\nWorld'); // => Hello\nWorld ``` -## Примеры использования `\n` +## Примеры использования \n Вот как PHP обрабатывает управляющую последовательность `\n`: @@ -113,7 +113,7 @@ First line Second line ``` -## Как вывести сам символ `\n` +## Как вывести сам символ \n `\n` в PHP является управляющей последовательностью. Она управляет расположением текста и не выводится на экран как обычные символы. Если вам нужно вывести именно символы `\` и `n`, а не перевод строки, их нужно экранировать. Для этого перед обратным слешем добавляют еще один слеш: diff --git a/modules/40-define-functions/150-return/en/README.md b/modules/40-define-functions/150-return/en/README.md index 7c591570..a389c1bb 100644 --- a/modules/40-define-functions/150-return/en/README.md +++ b/modules/40-define-functions/150-return/en/README.md @@ -113,7 +113,7 @@ print_r(formatName(' hexlet ')); // => HEXLET Code like this is encountered in real programs all the time. For example, when a user registers on a site, they may enter an email with extra spaces or letters in different cases: `SuppORT@hexlet.IO`. Before writing such an email to the database, it is prepared in exactly the same way: whitespace characters are trimmed and it is converted to lowercase. -## Code After `return` +## Code After return When PHP reaches the `return` statement, the function's execution stops. Everything written after it inside the function **will not be executed**: diff --git a/modules/40-define-functions/150-return/es/README.md b/modules/40-define-functions/150-return/es/README.md index a960be31..44f14116 100644 --- a/modules/40-define-functions/150-return/es/README.md +++ b/modules/40-define-functions/150-return/es/README.md @@ -113,7 +113,7 @@ print_r(formatName(' hexlet ')); // => HEXLET Código como este se encuentra en los programas reales constantemente. Por ejemplo, cuando un usuario se registra en un sitio, puede ingresar un correo con espacios de más o letras en distintos casos: `SuppORT@hexlet.IO`. Antes de escribir tal correo en la base de datos, se prepara exactamente de la misma manera: se recortan los caracteres de espacio y se convierte a minúsculas. -## Código después de `return` +## Código después de return Cuando PHP llega a la instrucción `return`, la ejecución de la función se detiene. Todo lo que está escrito después de ella dentro de la función **no se ejecutará**: diff --git a/modules/40-define-functions/150-return/ru/README.md b/modules/40-define-functions/150-return/ru/README.md index 7acf25d4..c4b45748 100644 --- a/modules/40-define-functions/150-return/ru/README.md +++ b/modules/40-define-functions/150-return/ru/README.md @@ -115,7 +115,7 @@ print_r(formatName(' hexlet ')); // => HEXLET Подобный код встречается в реальных программах постоянно. Например, когда пользователь регистрируется на сайте, он может ввести email с лишними пробелами или буквами в разном регистре: `SuppORT@hexlet.IO`. Перед записью в базу данных такой email готовят точно так же: обрезают пробельные символы и приводят к нижнему регистру. -## Код после `return` +## Код после return Когда PHP доходит до инструкции `return`, выполнение функции останавливается. Все, что написано после нее внутри функции, **не будет выполнено**: diff --git a/modules/45-logic/25-logical-operators/en/README.md b/modules/45-logic/25-logical-operators/en/README.md index a790df1b..7305c3cf 100644 --- a/modules/45-logic/25-logical-operators/en/README.md +++ b/modules/45-logic/25-logical-operators/en/README.md @@ -91,7 +91,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true) The area of mathematics that studies logical operators is called Boolean algebra. **Truth tables** show what the result will be when each operator is applied. -#### AND `&&` +#### AND && | A | B | A `&&` B | | ----- | ----- | -------- | @@ -100,7 +100,7 @@ The area of mathematics that studies logical operators is called Boolean algebra | false | true | false | | false | false | false | -#### OR `||` +#### OR || | A | B | A `‖` B | | ----- | ----- | -------- | diff --git a/modules/45-logic/25-logical-operators/es/README.md b/modules/45-logic/25-logical-operators/es/README.md index b677a0dc..c0afda98 100644 --- a/modules/45-logic/25-logical-operators/es/README.md +++ b/modules/45-logic/25-logical-operators/es/README.md @@ -91,7 +91,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true) El área de las matemáticas que estudia los operadores lógicos se llama álgebra booleana. Las **tablas de verdad** muestran cuál será el resultado al aplicar cada operador. -#### Y `&&` +#### Y && | A | B | A `&&` B | | ----- | ----- | -------- | @@ -100,7 +100,7 @@ El área de las matemáticas que estudia los operadores lógicos se llama álgeb | false | true | false | | false | false | false | -#### O `||` +#### O || | A | B | A `‖` B | | ----- | ----- | -------- | diff --git a/modules/45-logic/25-logical-operators/ru/README.md b/modules/45-logic/25-logical-operators/ru/README.md index 6a51cb08..5ea27f56 100644 --- a/modules/45-logic/25-logical-operators/ru/README.md +++ b/modules/45-logic/25-logical-operators/ru/README.md @@ -91,7 +91,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true) Область математики, в которой изучаются логические операторы, называется булевой алгеброй. **Таблицы истинности** показывают, каким будет результат при применении каждого оператора. -#### И `&&` +#### И && | A | B | A `&&` B | | ----- | ----- | -------- | @@ -100,7 +100,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true) | false | true | false | | false | false | false | -#### ИЛИ `||` +#### ИЛИ || | A | B | A `‖` B | | ----- | ----- | -------- |