52 of 110 menu

The Empty Array in PHP

To assign an empty array to a variable, you need to assign square brackets to it. See the example:

<?php $arr = []; ?>
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline