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
15 changes: 14 additions & 1 deletion modules/25-strings/30-encoding/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,20 @@ theory: |
- PHP almacena la cadena como una secuencia de bytes, por lo que, al trabajar con archivos y bases de datos, a veces hay que indicar la codificación explícitamente.
- Hay que saber diagnosticar los problemas. Por ejemplo, si ves "caracteres ilegibles", casi con seguridad es un error de codificación.
instructions: |
El programa recibe los códigos numéricos de los caracteres y los muestra en la pantalla — esto resulta cómodo cuando un carácter es difícil de teclear con el teclado. Encuentra los caracteres con los códigos 126, 94 y 37 en la [tabla ASCII](https://www.ascii-code.com) (nos interesa el código decimal — *dec* o *decimal*) y muestra cada uno en una línea aparte usando la función `chr()` y un salto de línea:
El programa recibe los códigos numéricos de los caracteres y los muestra en la pantalla — esto resulta cómodo cuando un carácter es difícil de teclear con el teclado. Encuentra los caracteres con los códigos 126, 94 y 37 en la tabla ASCII de abajo y muestra cada uno en una línea aparte usando la función `chr()` y un salto de línea:

| Carácter | Código |
|----------|--------|
| ! | 33 |
| # | 35 |
| % | 37 |
| & | 38 |
| * | 42 |
| ? | 63 |
| @ | 64 |
| ^ | 94 |
| _ | 95 |
| ~ | 126 |

```php
print_r(chr(...) . "\n");
Expand Down
15 changes: 14 additions & 1 deletion modules/25-strings/30-encoding/en/EXERCISE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
The program receives the numeric codes of characters and displays them on the screen — this is handy when a character is hard to type on the keyboard. Find the characters with codes 126, 94, and 37 in the [ASCII table](https://www.ascii-code.com) (we're interested in the decimal code — *dec* or *decimal*) and print each one on a separate line using the `chr()` function and a line break:
The program receives the numeric codes of characters and displays them on the screen — this is handy when a character is hard to type on the keyboard. Find the characters with codes 126, 94, and 37 in the ASCII table below and print each one on a separate line using the `chr()` function and a line break:

| Character | Code |
|-----------|------|
| ! | 33 |
| # | 35 |
| % | 37 |
| & | 38 |
| * | 42 |
| ? | 63 |
| @ | 64 |
| ^ | 94 |
| _ | 95 |
| ~ | 126 |

```php
print_r(chr(...) . "\n");
Expand Down
15 changes: 14 additions & 1 deletion modules/25-strings/30-encoding/es/EXERCISE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
El programa recibe los códigos numéricos de los caracteres y los muestra en la pantalla — esto resulta cómodo cuando un carácter es difícil de teclear con el teclado. Encuentra los caracteres con los códigos 126, 94 y 37 en la [tabla ASCII](https://www.ascii-code.com) (nos interesa el código decimal — *dec* o *decimal*) y muestra cada uno en una línea aparte usando la función `chr()` y un salto de línea:
El programa recibe los códigos numéricos de los caracteres y los muestra en la pantalla — esto resulta cómodo cuando un carácter es difícil de teclear con el teclado. Encuentra los caracteres con los códigos 126, 94 y 37 en la tabla ASCII de abajo y muestra cada uno en una línea aparte usando la función `chr()` y un salto de línea:

| Carácter | Código |
|----------|--------|
| ! | 33 |
| # | 35 |
| % | 37 |
| & | 38 |
| * | 42 |
| ? | 63 |
| @ | 64 |
| ^ | 94 |
| _ | 95 |
| ~ | 126 |

Check notice on line 14 in modules/25-strings/30-encoding/es/EXERCISE.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/25-strings/30-encoding/es/EXERCISE.md#L14

File types are normally capitalized. (FILE_EXTENSIONS_CASE[1]) Suggestions: `PHP` URL: https://languagetool.org/insights/post/spelling-capital-letters/ Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1 Category: CASING
Raw output
modules/25-strings/30-encoding/es/EXERCISE.md:14:13: File types are normally capitalized. (FILE_EXTENSIONS_CASE[1])
 Suggestions: `PHP`
 URL: https://languagetool.org/insights/post/spelling-capital-letters/ 
 Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1
 Category: CASING

```php
print_r(chr(...) . "\n");
Expand Down
15 changes: 14 additions & 1 deletion modules/25-strings/30-encoding/ru/EXERCISE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
Программа получает числовые коды символов и выводит их на экран — это удобно, когда символ сложно набрать с клавиатуры. Найдите символы с кодами 126, 94 и 37 в [таблице ASCII](https://www.ascii-code.com) (нас интересует десятичный код — *dec* или *decimal*) и выведите каждый на отдельной строке с помощью функции `chr()` и перевода строки:
Программа получает числовые коды символов и выводит их на экран — это удобно, когда символ сложно набрать с клавиатуры. Найдите символы с кодами 126, 94 и 37 в таблице ASCII ниже и выведите каждый на отдельной строке с помощью функции `chr()` и перевода строки:

| Символ | Код |

Check notice on line 3 in modules/25-strings/30-encoding/ru/EXERCISE.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/25-strings/30-encoding/ru/EXERCISE.md#L3

File types are normally capitalized. (FILE_EXTENSIONS_CASE[1]) Suggestions: `PHP` URL: https://languagetool.org/insights/post/spelling-capital-letters/ Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1 Category: CASING
Raw output
modules/25-strings/30-encoding/ru/EXERCISE.md:3:12: File types are normally capitalized. (FILE_EXTENSIONS_CASE[1])
 Suggestions: `PHP`
 URL: https://languagetool.org/insights/post/spelling-capital-letters/ 
 Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1
 Category: CASING
|--------|-----|
| ! | 33 |
| # | 35 |
| % | 37 |
| & | 38 |
| * | 42 |
| ? | 63 |

Check notice on line 10 in modules/25-strings/30-encoding/ru/EXERCISE.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/25-strings/30-encoding/ru/EXERCISE.md#L10

File types are normally capitalized. (FILE_EXTENSIONS_CASE[1]) Suggestions: `PHP` URL: https://languagetool.org/insights/post/spelling-capital-letters/ Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1 Category: CASING
Raw output
modules/25-strings/30-encoding/ru/EXERCISE.md:10:10: File types are normally capitalized. (FILE_EXTENSIONS_CASE[1])
 Suggestions: `PHP`
 URL: https://languagetool.org/insights/post/spelling-capital-letters/ 
 Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1
 Category: CASING
| @ | 64 |
| ^ | 94 |
| _ | 95 |
| ~ | 126 |

```php
print_r(chr(...) . "\n");
Expand Down
Loading