Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/20-arithmetics/20-basic/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion modules/20-arithmetics/20-basic/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion modules/20-arithmetics/20-basic/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ print_r(7 / 2); // => 3.5

На базовом уровне достаточно помнить: целые числа нужны, когда нет дробей, а числа с плавающей точкой нужны, когда дроби есть. Подробнее мы разберемся с ними дальше по курсу.

## Что такое остаток от деления (`%`)
## Что такое остаток от деления (%)

Эта операция называется **взятие остатка от деления**. Она показывает, **что «остается»**, когда одно число делится на другое _не полностью_. Пример:

Expand Down
6 changes: 3 additions & 3 deletions modules/25-strings/15-escape-characters/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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`:

Expand Down Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions modules/25-strings/15-escape-characters/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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`:

Expand Down Expand Up @@ -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:

Expand Down
6 changes: 3 additions & 3 deletions modules/25-strings/15-escape-characters/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ print_r("- Are you hungry?\n- Aaaarrrgh!");
- Aaaarrrgh!
```

## Что такое `\n`?
## Что такое \n?

`\n` является управляющей последовательностью (англ. escape sequence, иногда говорят «экранированная последовательность»). Она обозначает перевод строки, но не отображается напрямую. Вы не увидите `\n` в выводе программы, так как она влияет только на расположение текста.

Expand Down Expand Up @@ -58,7 +58,7 @@ print_r('Hello\nWorld');
// => Hello\nWorld
```

## Примеры использования `\n`
## Примеры использования \n

Вот как PHP обрабатывает управляющую последовательность `\n`:

Expand Down Expand Up @@ -113,7 +113,7 @@ First line
Second line
```

## Как вывести сам символ `\n`
## Как вывести сам символ \n

`\n` в PHP является управляющей последовательностью. Она управляет расположением текста и не выводится на экран как обычные символы. Если вам нужно вывести именно символы `\` и `n`, а не перевод строки, их нужно экранировать. Для этого перед обратным слешем добавляют еще один слеш:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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á**:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ print_r(formatName(' hexlet ')); // => HEXLET

Подобный код встречается в реальных программах постоянно. Например, когда пользователь регистрируется на сайте, он может ввести email с лишними пробелами или буквами в разном регистре: `SuppORT@hexlet.IO`. Перед записью в базу данных такой email готовят точно так же: обрезают пробельные символы и приводят к нижнему регистру.

## Код после `return`
## Код после return

Когда PHP доходит до инструкции `return`, выполнение функции останавливается. Все, что написано после нее внутри функции, **не будет выполнено**:

Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ----- | ----- | -------- |
Expand All @@ -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 |
| ----- | ----- | -------- |
Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| ----- | ----- | -------- |
Expand All @@ -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 |
| ----- | ----- | -------- |
Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true)

Область математики, в которой изучаются логические операторы, называется булевой алгеброй. **Таблицы истинности** показывают, каким будет результат при применении каждого оператора.

#### И `&&`
#### И &&

| A | B | A `&&` B |
| ----- | ----- | -------- |
Expand All @@ -100,7 +100,7 @@ var_dump(isGoodApartment(80, 'Main Street')); // => bool(true)
| false | true | false |
| false | false | false |

#### ИЛИ `||`
#### ИЛИ ||

| A | B | A `‖` B |
| ----- | ----- | -------- |
Expand Down
Loading