I need to make a two-dimensional array based on the number of permissions that say about the parts of the car that are presented in the form. Is it possible to declare an array of a certain size, and THEN go back and fill it?
PHP arrays are dynamically allocated. There is no reason to create it ahead of time. Just start using indexes as needed:
$myNewVar[0] = 'data';
You can use array_fill () for this:
$array = array_fill(1, 50, ""); // creates [1]...[50] with "" string
Source: https://habr.com/ru/post/1340272/More articles:PowerPoint VBA: which command (or set of commands) will create ppt frames from my .jpg images? - scriptingDrawing a circle (with sectors) using HTML, CSS or jQuery - jqueryWhy do I need Maven if I use Eclipse? - javaIntegration of Twitter into an Android application - androidTupper independent reference formulas - in MATLAB? - matlabAdding Data.php Helper to Magento got an error - configurationVisual C ++ 2010, rvalue link error? - c ++Control.Invoke () vs Control.BeginInvoke () - c #Why in this code the compiler chooses the r-value ref version - c ++Text Comparison {{if}} JQuery Template - jqueryAll Articles