C
C
Cyril2019-06-09 21:57:59
phpstorm
Cyril, 2019-06-09 21:57:59

PHPStorm IDE, line break before and after if/else?

I would like to make a new line, but I don’t see such a setting point-blank, maybe someone in the know?
Expectation:

$test = 1;

if ($test == 2) {

} else {

}

foreach (...) {

}

Reality:
$test = 1;
if ($test == 2) {

} else {

}
foreach (...) {

}

5cfd56afd4f70866684972.png
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Polin, 2017-07-15
@zRrr

Try replacing mysqli_fetch_array with mysqli_fetch_assoc . The first has the property of duplicating data.

A
ademar26, 2017-07-15
@ademar26

mysqli_fetch_assoc transforms the data received from the query into an associative array, where the rows from the fetch are ordinal keys and the columns are key values.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question