It is necessary to output a line containing spaces to the specified position, in which it is necessary to display its sequence number. For example, for position number 3, the line should contain 2 spaces and the number 3. I am writing the following code:
<? $out = ""; $i = 3; $out[$i] = $i; echo "$out"; ?>
Displays Array
. Is the variable enclosed in double quotes php does not regard as a string? How do I get results?